Uh oh!
There was an error while loading. Please reload this page.
feat: add keybindingDescription exploration - #5626
Conversation
|
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
ericwbailey
commented
Jan 30, 2025
A little more context, if it's helpful. This work is in response to https://github.com/github/accessibility/issues/8018, which was discovered with a usability testing session with TetraLogical. There are two user-facing concerns we're trying to address:
This work addresses those concerns by allowing for visually maintaining the design, while also providing a mechanism for an author to override the auto-generated string with something that makes more sense for a user to hear. |
iansan5653
commented
Mar 25, 2025
Wrote up some findings and suggestions + more context in https://github.com/github/accessibility/issues/8018#issuecomment-2751656621 |
@ericwbailey observed that in IconButton's that use a tooltip and a keybinding hint that the computed label was including extra information. This seems due to the fact that we're constructing the keybinding hint using
aria-hiddenbut this is not respected whenaria-labelledbyoraria-describedbyis used.This PR is an exploration into what it would look like to add a way to provide an appropriate description through
keybindingDescriptionbut it would be worth seeing if we can make this work withKeybindingHintdirectly.Changelog
New
Changed
ButtonBasearia-labelledbyoraria-describedbykeybindingDescriptionto see what this would look like to provide an appropriate description for the keybindingHintRemoved