Skip to content
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

The aria-keyshortcuts is wrongly attached for the ActionList.LinkItem components #2411

Closed
jchuerva opened this issue Oct 6, 2022 · 5 comments · Fixed by #2657
Closed

The aria-keyshortcuts is wrongly attached for the ActionList.LinkItem components #2411

jchuerva opened this issue Oct 6, 2022 · 5 comments · Fixed by #2657
Assignees
Labels

Comments

@jchuerva
Copy link

jchuerva commented Oct 6, 2022

From https://github.com/github/repos/issues/3034

It looks like for ActionList.LinkItem component, the aria-keyshortcuts is attached the the <a> instead of <li> which is incorrect.

image

@siddharthkp siddharthkp added the bug Something isn't working label Oct 7, 2022
@lesliecdubs
Copy link
Member

Thanks for reporting this bug, @jchuerva! This looks like it'll require a slightly more complex fix so we're moving it to our backlog for now but hope to revisit soon.

@siddharthkp
Copy link
Member

siddharthkp commented Oct 11, 2022

Leaving here for context:

  1. We need to move aria-keyshortcuts to the list item and also change the focusable element to list-item
  2. After moving aria-keyshortcuts and focus, need to make sure the link can still be opened with keyboard

@green6erry
Copy link
Contributor

green6erry commented Nov 29, 2022

Hey all, if we move the aria-keyshortcuts to the <li> element, it makes the selection the link wrapper and not the <a> element (because <li> in this case is a wrapper for the selectable item, <a>). It seems to me that to accomplish this requested assignment of the shortcut to the wrapper while keeping the functionality intact for the link is a bit roundabout thing to do. That said, to get further clarification:

  • is this for the mnemonic key shortcut or a manually assigned key shortcut (or both)?
  • why is attaching the aria-keyshortcuts to the <a> instead of <li> incorrect?

@lesliecdubs
Copy link
Member

Good questions @green6erry! If you'd like an accessibility expert to weigh in on them, I'd suggest asking about this over in #accessibility on Slack or signing up for the next Accessibility Eng+ Office Hours for more hands-on support and advice.

This helpful accessibility guide may come in handy for your work!

@tallys
Copy link

tallys commented Dec 12, 2022

hey @siddharthkp, checking in on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants