Etemplate: Make some statustext readable by screenreader

This commit is contained in:
nathangray 2021-06-09 12:01:51 -06:00
parent dd545799e0
commit 5aba575d25
2 changed files with 5 additions and 0 deletions

View File

@ -213,6 +213,8 @@ var et2_baseWidget = /** @class */ (function (_super) {
//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);

View File

@ -289,6 +289,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)
{