IconButton: Improve keyboard shortcut accessibility - #80402
Conversation
|
Size Change: -9 B (0%) Total Size: 7.65 MB 📦 View Changed
|
|
Flaky tests detected in eeeeda6. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/29574471511
|
ed72453 to
b49b0ec
Compare
|
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. |
mirka
left a comment
There was a problem hiding this comment.
Looking good in general 👍 I just want to see if we can improve clarity around names and documentation.
eeeeda6 to
6b576ca
Compare
|
@mirka all feedback addressed, can you take another look? |
|
I think this may be the last step before marking the component as officially recommended? Probably |
I think so? I also have #80407 open, adding a shortcut-focused, high-level |
54f7ce4 to
dc8f6a6
Compare
* IconButton: Share accessible shortcut handling * IconButton: Add shortcut changelog entry * IconButton: Share shortcut display semantics * IconButton: Clarify shortcut metadata * IconButton: Add shortcut label fallback * IconButton: Clarify shortcut props hook name * IconButton: Require shortcut label --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org>
Follow-up to #80321.
See #80353.
Related: #79560.
What?
Improves
IconButtonkeyboard shortcut accessibility and extracts reusable internal shortcut helpers.Why?
IconButtondisplayed shortcuts and setaria-keyshortcuts, but did not provide an explicit accessible description.How?
shortcut.labelfor the accessible description.aria-describedbyand preserves direct ARIA props.Shortcut registration remains the consumer's responsibility.
Testing Instructions
aria-keyshortcutsand an accessible shortcut description.Testing Instructions for Keyboard
Use of AI Tools
This PR was implemented with AI assistance in Codex and reviewed locally.