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

Scrolling lists on the page don't have accessible names #6316

Open
eatyourgreens opened this issue Sep 18, 2024 · 0 comments
Open

Scrolling lists on the page don't have accessible names #6316

eatyourgreens opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Sep 18, 2024

Package

  • app-root?
  • lib-user?

Describe the bug

The new home page and user stats use horizontal scrolling lists, styled with overflow-x: auto, to show project cards. Scrolling regions of the page must have accessible names and roles, but these lists aren't labelled in the accessibility tree.

To Reproduce

Navigate the new pages in a screen reader, and verify that none of the scrolling regions have accessible names.

Alternatively, examine each scrolling region's name and role in the browser accessibility tree.

Expected behavior

Regions styled with overflow: auto must have the following, in order to be accessible to screen readers:

  • an accessible role.
  • an accessible name.
  • be able to receive keyboard focus.

Additional context

Keyboard only scrolling areas by Adrian Roselli (2022.)

Where a list has a heading, the easiest way to give it an accessible name is to link the list to the heading.

<h2 id="my-projects">My projects</h2>
<ul aria-labelledby="my-projects">
<!-- …some project cards -->
</ul>
@eatyourgreens eatyourgreens added the bug Something isn't working label Sep 18, 2024
@eatyourgreens eatyourgreens changed the title User p Scrolling regions on the page must have accessible names and roles Sep 18, 2024
@eatyourgreens eatyourgreens changed the title Scrolling regions on the page must have accessible names and roles Scrolling lists on the page don't have accessible names Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant