mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Etemplate: Make some statustext readable by screenreader
This commit is contained in:
parent
dd545799e0
commit
5aba575d25
@ -213,6 +213,8 @@ var et2_baseWidget = /** @class */ (function (_super) {
|
|||||||
//Get the domnode the tooltip should be attached to
|
//Get the domnode the tooltip should be attached to
|
||||||
var elem = jQuery(this.getTooltipElement());
|
var elem = jQuery(this.getTooltipElement());
|
||||||
if (elem) {
|
if (elem) {
|
||||||
|
// Make readable by screenreader
|
||||||
|
elem.attr("aria-description", this.statustext);
|
||||||
//If a tooltip is already attached to the element, remove it first
|
//If a tooltip is already attached to the element, remove it first
|
||||||
if (this._tooltipElem) {
|
if (this._tooltipElem) {
|
||||||
this.egw().tooltipUnbind(this._tooltipElem);
|
this.egw().tooltipUnbind(this._tooltipElem);
|
||||||
|
@ -289,6 +289,9 @@ export class et2_baseWidget extends et2_DOMWidget implements et2_IAligned
|
|||||||
|
|
||||||
if (elem)
|
if (elem)
|
||||||
{
|
{
|
||||||
|
// Make readable by screenreader
|
||||||
|
elem.attr("aria-description",this.statustext);
|
||||||
|
|
||||||
//If a tooltip is already attached to the element, remove it first
|
//If a tooltip is already attached to the element, remove it first
|
||||||
if (this._tooltipElem)
|
if (this._tooltipElem)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user