-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command centre button: missing focus style and incorrect labeling #51460
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Comments
afercia
added
[Type] Bug
An existing feature does not function as intended
[a11y] Keyboard & Focus
[Package] Edit Site
/packages/edit-site
labels
Jun 13, 2023
Note that this issue is in part connected with the existing issue about the main H1 in the Site editor and about what the H1 should communicate to users. To start with, seems to me placing the main H1 within this button is very far from ideal, as the button and the H1 should have very different purposes. |
priethor
added
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
and removed
[a11y] Labelling
labels
Jul 24, 2023
This was referenced Jun 13, 2024
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
In the Site Editor, the button that opens the 'command centre' has a couple accessibility issues:
Editing template: Home ⌘K
. This labeling is less than ideal because it communicates the current state of the UI instead of the button's action. Instead, any interactive control must communicate what it does. The state should be communicated separately.Minor:
This whole chunk of HTML is invalid HTML:
Screenshot: this is how the accessible name of this button is announced by screen readers:
Also worth noting that the visible text and the actual accessible name mismatch: this makes impossible to speech recognition software users issuing a vocal command. See WCAG 2.5.3 Label in Name. the best practice is to make sure that the actual accessible name matches, or at least starts, with the text that is visible to users.
Step-by-step reproduction instructions
Editing template: Home ⌘K
.⌘K
is a clear indication of what this button does.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: