mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +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
|
||||
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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user