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

User can't select cards on dashboard (views) via keyboard #1473

Closed
ssciolla opened this issue Jan 26, 2023 · 1 comment · Fixed by #1475
Closed

User can't select cards on dashboard (views) via keyboard #1473

ssciolla opened this issue Jan 26, 2023 · 1 comment · Fixed by #1475
Labels

Comments

@ssciolla
Copy link
Contributor

Thank you for contributing to this project!

  • Make sure to search the issues for duplicates first!

Expected behavior (A description of what you expected to happen) :

The list of views should be keyboard accessible, i.e. you should be able to use Tab and Shift + Tab to navigate through them and back, and press Enter to select one.

Describe the bug (Tell us what happens instead of the expected behavior) :

The user can Tab through the list of view cards, but pressing Enter when the view cards is in focus does not send the user to the corresponding view.

Additional context (Add any other context about the problem here) :

Looking at the source code, it looks like this was partially the result of an attempt to include the help link in the card. Nested a tags are invalid HTML I guess, so the solution at the time was to separately link different parts of the card (title, description, image. etc.) but give them all tabindex=-1. The card itself still has tabindex=0 but there is no link attached to it.

Some initial research suggests that one solution may to use CSS to layer the help link on top of card. See https://css-tricks.com/nested-links/

@ssciolla ssciolla added 🪳 bug Something isn't working accessibility Frontend labels Jan 26, 2023
@jonespm jonespm changed the title User can't select views via keyboard User can't select cards on dashboard (views) via keyboard Jan 26, 2023
jonespm added a commit to jonespm/student-dashboard-django that referenced this issue Jan 26, 2023
jonespm added a commit to jonespm/student-dashboard-django that referenced this issue Jan 26, 2023
@jennlove-um jennlove-um added this to To do in MyLA-2023.01.02 via automation Jan 26, 2023
@jonespm jonespm moved this from To do to In progress in MyLA-2023.01.02 Jan 27, 2023
MyLA-2023.01.02 automation moved this from In progress to Review/QA Jan 27, 2023
ssciolla added a commit that referenced this issue Jan 27, 2023
…eader text (#1473) (#1475)

* Fixes #1473 - User can't select cards on dashboard (views) via keyboard

* Use layering approach; fix linting errors

* Tweak a couple things

* Change to img, add aria-label to help link to improve screenreader text

* Improve enable aria-label

* Remove unused CSS class; adjust percentages to mirror previous state

---------

Co-authored-by: Code Hugger (Matthew Jones) <jonespm@umich.edu>
@jennlove-um jennlove-um removed this from Review/QA in MyLA-2023.01.02 Jan 27, 2023
@jennlove-um jennlove-um added this to To do in MyLA-2023.01.01 via automation Jan 27, 2023
@jennlove-um jennlove-um moved this from To do to Review/QA in MyLA-2023.01.01 Jan 27, 2023
@jennlove-um jennlove-um moved this from Review/QA to Done in MyLA-2023.01.01 Jan 27, 2023
@jennlove-um
Copy link
Contributor

Testing passes in beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
2 participants