Closed kylebuch8 closed 3 months ago
@bennypowers element internals aren't showing up in the accessibility tree for pf-switch
and pf-jump-links
Should the role of pf-switch be role="switch"
? (Thanks @bexter89)
Would it also need the title
attribute?
@nikkimk either it's our fault and internals controller is broken, or it's the browser, or it's a polyfill bug. we should first see if there's a new version of the polyfill. then we should try it on various browsers with the polyfill NOT included and see if that helps.
We should also try this with internals controller, since switch was written before the controller was.
worst case is that browsers aren't exposing this info to AT, in which case there's not much to be done about it other than throw up our hands and sprout attrs.
should be closed by #2702
Description of the issue
The
pf-switch
is missing the required aria-checked attribute. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/checkbox_roleImpacted component(s)
Steps to reproduce
Expected behavior
There should be an aria-checked attribute present indicating the state of the switch since the switch has a role of checkbox.
Screenshots