Global styles navigation button: avoid visible text and accessible name mismatch #66526
Closed
2 of 6 tasks
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Design Feedback
Needs general design feedback.
[Package] Edit Site
/packages/edit-site
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Similar to #66525
In the Site editor 'site view', the navigation panel > Styles, shows a control to go to the Revisions:
The visible text of this button is, for example:
Last modified 3 days ago
the actual accessible nae provided by the button aria-label is:
aria-label="Revisions"
FOr the same reasons explained in #66525, this kinf od mismatch must be avoided.
Also, interactive controls aren't the right place to provide information about states or values. They have to provide information about the button action.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: