Generated with the help of an LLM.
Problem/Motivation
The accessibility test audits the Builder in its default view, which has no violation. Axe on the other views finds some:
- Contextual menu, critical,
aria-required-children: the header with the element name and the close button sits directly in role="menu". Every item is also typed as a checkbox, so Copy or Remove reads as a checkbox.
- Scaffold, serious,
aria-hidden-focus: the summary icons are aria-hidden but hold a button.
- Scaffold, serious,
color-contrast: the slot titles, small orange italic text, are below 4.5:1 in light mode.
Steps to reproduce
- Open a builder with a component holding a slot. Run axe on
.display-builder.
- Right-click the component and run it again. Switch to Scaffold and run it again.
Proposed resolution
Move the menu header out of role="menu", or give it role="none" or role="presentation". Drop type="checkbox" on action items. Take the button out of the hidden summary icons, or unhide them. Darken the slot title token. Extend the test to the contextual menu, the Scaffold and the Libraries.
Remaining tasks
- Extend
accessibility.spec.ts, see it fail.
- Fix.
Comments