-
Notifications
You must be signed in to change notification settings - Fork 535
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
2411 the aria keyshortcuts is wrongly attached for the actionlistlinkitem components #2657
2411 the aria keyshortcuts is wrongly attached for the actionlistlinkitem components #2657
Conversation
🦋 Changeset detectedLatest commit: bd6dbc8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
…tcuts-is-wrongly-attached-for-the-actionlistlinkitem-components
…ed-for-the-actionlistlinkitem-components
…actionlistlinkitem-components' of github.com:primer/react into 2411-the-aria-keyshortcuts-is-wrongly-attached-for-the-actionlistlinkitem-components
…ed-for-the-actionlistlinkitem-components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🥳
cc @siddharthkp would love to hear any thoughts you might have on this approach for handling the |
…ed-for-the-actionlistlinkitem-components
…ed-for-the-actionlistlinkitem-components
…ed-for-the-actionlistlinkitem-components
Closes 2411
Removes this disparity of
aria-keyshortcuts
value, which when from mnemonics, was being assigned to the<li>
wrapper of LinkItem, whereas if it wasaria-keyshortcuts
was manually defined, it would assign to the inner<a>
element (creating two keyboard shortcuts that looked like they were selecting the same element, but were not). This also applies the correct proprole="menuitem"
to the<a>
element instead of the<li>
in Link Item.Screenshots
Previously, in this above example, pressing "u" would make the wrapper
<li>
active, and "d" would make the inner<a>
active. Now, "u" doesn't do anything as the mnemonic keyshortcut is overridden by the user defined "d".Changelog
Updated
aria-keyshortcuts
to select the<a>
tag withinrole="menuitem"
is being assigned to correctly selectable DOM element inner<a>
instead of the wrapper<li>
Merge checklist