fix(a11y): add timer role to time elements
This commit is contained in:
parent
aa4eaec742
commit
e17d0220c0
1
src/js/controls.js
vendored
1
src/js/controls.js
vendored
@ -383,6 +383,7 @@ const controls = {
|
|||||||
extend(attributes, {
|
extend(attributes, {
|
||||||
class: `${attributes.class ? attributes.class : ''} ${this.config.classNames.display.time} `.trim(),
|
class: `${attributes.class ? attributes.class : ''} ${this.config.classNames.display.time} `.trim(),
|
||||||
'aria-label': i18n.get(type, this.config),
|
'aria-label': i18n.get(type, this.config),
|
||||||
|
role: 'timer',
|
||||||
}),
|
}),
|
||||||
'00:00',
|
'00:00',
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user