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:
parent
29e62a1e4f
commit
bc8a25d0da
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -111,7 +111,7 @@ const controls = {
|
||||
setAttributes(
|
||||
icon,
|
||||
extend(attributes, {
|
||||
role: 'presentation',
|
||||
'aria-hidden': 'true',
|
||||
focusable: 'false',
|
||||
}),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user