Open afercia opened 1 year ago
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.
Additionally, go to:
Additionally: when hovering one of the two buttons, the hover style changes also on the other button. I'm not sure this is a great idea, as it hints to user the whole thing is just one control, while they're actually two separate controls. Screenshot with default state and hover state:
Noting this happens also in the Post editor.
I'm not sure I understand the reasoning behind making separate controls look like a single control in the first place. These are separate buttons and should visually appear as separate controls in the first place.
Additionally:
In the Post editor > Editing template mode, the buttons are separated with some spacing:
In the Site editor instead, the 'Bacl' button is placed 'on top' of the other button. In the screenshot below, I shifted the Back button down a bit to illustrate it sits on top of the other button:
This isn't ideal because, when restoring the focus style to be visible, focusing the Command centre button will draw an outline that ecompasses also the Back button, which would be an incorrect focus indication:
Seems to me the whole CSS grid implementation should be removed and these buttons in the Site editor should use the same CSS flex styling of the buttons in the Post editor. The 'slide in' CSS animation would work in a slightly different manner but it would still work.
Assitionally: On small screens, the Post editor top bar layout breaks at various breakpoints:
The Site editor behaves a bit better, but still has problems at the smallest viewport sizes:
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