Completely hide SVG icons to screen readers

SVG icons should be ignored by screen readers since they have complimentary labels (aria-label or plyr__sr-only). The current « presentation » role simply makes the element behave like a « span » which is incorrect, aria-hidden prevents screen readers from taking care of these elements at all.
This commit is contained in:
Benoît Burgener 2020-02-25 10:46:31 +01:00
parent 29e62a1e4f
commit bc8a25d0da

2
src/js/controls.js vendored
View File

@ -111,7 +111,7 @@ const controls = {
setAttributes(
icon,
extend(attributes, {
role: 'presentation',
'aria-hidden': 'true',
focusable: 'false',
}),
);