fix(a11y): add timer role to time elements

This commit is contained in:
Sam Potts 2023-03-11 21:14:43 +11:00
parent aa4eaec742
commit e17d0220c0

1
src/js/controls.js vendored
View File

@ -383,6 +383,7 @@ const controls = {
extend(attributes, {
class: `${attributes.class ? attributes.class : ''} ${this.config.classNames.display.time} `.trim(),
'aria-label': i18n.get(type, this.config),
role: 'timer',
}),
'00:00',
);