ToggleGroupControlOption: aria-label cannot be overwritten #35381
Labels
[Feature] Component System
WordPress component system
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
Description
It would be better if we could override the aria-label when the visual label is non-ideal for screen readers:
gutenberg/packages/components/src/toggle-group-control/toggle-group-control-button.tsx
Lines 45 to 48 in d4794d6
The aria-label currently defaults to the visual label, which is possibly also redundant because the same label appears as a child element.
Step-by-step reproduction instructions
For example:
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: