Closed nikkimk closed 3 months ago
This may arise when items are slotted into the default slot - in which case they'll be projected into a menu role parent in the shadow root. May we in that case allow ourselves to treat this as a false positive?
This may arise when items are slotted into the default slot - in which case they'll be projected into a menu role parent in the shadow root. May we in that case allow ourselves to treat this as a false positive?
After more investigation it looks like pf-dropdown-menu
's role is not showing up as menu
in the accessibility tree, which is an issue.
Are we failing to load the element internals polyfill?
This should be good now, following tests by @nikkimk and @hellogreg
Description of the issue
When testing dropdown, axeDevTools has the following error:
Impacted component(s)
pf-dropdown
Steps to reproduce
pf-dropdown-menu
's accessibility tree in the Element Inspector.role
:menu
is not being applied.Expected behavior
The element marked as
role="menuitem"
needs to be a child of the element withrole="menu".
UPDATE:pf-dropdown-menu
should have amenu
role.Related issues
2703