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

Fix / Accessibility improvements for Hero shelf pagination and LayoutGrid #647

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

langemike
Copy link
Collaborator

These issues were discovered by a https://pagespeed.web.dev/ analysis. These changes could most likely give us a 100% accessibility score.

Changes:

  • aria-colindex / aria-rowindex must count from 1
  • Hero pagination items were not wrapped in a <li> (causing invalid HTML markup)
  • Added a disabled attribute to the button when the pagination dot is non-clickable (ascendant element has aria-hidden="true" attribute)

The latter caused an error message in Chrome devtools. tabIndex={-1} did not solve this on the <li> or <button>, so i resorted to a disabled which seems appropriate considering the situation.

Tickets: OTT-2784 & OTT-2776

Copy link

Visit the preview URL for this PR (updated for commit 3d9ba92):

https://ottwebapp--pr647-fix-a11y-improvement-be62ngb8.web.app

(expires Wed, 18 Dec 2024 13:59:19 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c198f8a3a199ba8747819f7f1e45cf602b777529

@langemike langemike merged commit 9ad371d into develop Nov 25, 2024
10 checks passed
@langemike langemike deleted the fix/a11y-improvements branch November 25, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants