diff --git a/api/js/etemplate/et2_core_baseWidget.js b/api/js/etemplate/et2_core_baseWidget.js index 5308683563..9d78fe43da 100644 --- a/api/js/etemplate/et2_core_baseWidget.js +++ b/api/js/etemplate/et2_core_baseWidget.js @@ -189,6 +189,8 @@ export class et2_baseWidget extends et2_DOMWidget { //Get the domnode the tooltip should be attached to var elem = jQuery(this.getTooltipElement()); 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 (this._tooltipElem) { this.egw().tooltipUnbind(this._tooltipElem); diff --git a/api/js/etemplate/et2_core_baseWidget.ts b/api/js/etemplate/et2_core_baseWidget.ts index 7ceed52915..321c560b6a 100644 --- a/api/js/etemplate/et2_core_baseWidget.ts +++ b/api/js/etemplate/et2_core_baseWidget.ts @@ -292,6 +292,9 @@ export class et2_baseWidget extends et2_DOMWidget implements et2_IAligned 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 (this._tooltipElem) {