-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Separate Command Palette (command + K) and Visible Template title buttons #63462
base: trunk
Are you sure you want to change the base?
Conversation
…tons This is an odd one to keep the same design and account for improved accessibility. It's admittedly a hodgepodge. The shortcut button (Command + K) is a full-width button with the text aligned right. It has an aria-label tooltip of Command Palette so it can be accessed via a voice command of Command Palette or via the visible template name. The template name button is tabindex=-1 so it never receives focus and is also _behind_ the transparent Command + K button, so that a mouse click will always access the Command + K button and get the full width focus style. The H1 for the template name has been changed to a span. I'll add a visually hidden H1 in a follow-up commit.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -1 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
@alexstine - I tried another route for better H1 and command palette button labelling while still keeping all the visual interactions the same. I'm hoping to thread the needle of the visual designs and the accessibility so we can get an improvement merged. I'll be the first to admit the structure is more than a little odd. Curious to hear how it works for you. This is an alternative to #63462 |
@jeryj Getting closer, but not quite.
Adding a tabindex of -1 removes it from the tab order but not from screen readers other means of browsing. Thanks. |
This is an odd one to keep the same design and account for improved accessibility. It's admittedly a hodgepodge. The shortcut button (Command + K) is a full-width button with the text aligned right. It has an aria-label tooltip of Command Palette so it can be accessed via a voice command of Command Palette or via the visible template name. The template name button is tabindex=-1 so it never receives focus and is also behind the transparent Command + K button, so that a mouse click will always access the Command + K button and get the full width focus style. The H1 for the template name has been changed to a span. I'll add a visually hidden H1 in a follow-up commit.
What?
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast