mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Etemplate: Make some statustext readable by screenreader
(cherry picked from commit 5aba575d25
)
This commit is contained in:
parent
aa241edfb3
commit
8a666c751f
@ -189,6 +189,8 @@ export class et2_baseWidget extends et2_DOMWidget {
|
|||||||
//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);
|
||||||
|
@ -292,6 +292,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