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

[docs-infra] Fix axe issue scroll-to-top without landmark #43663

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 8, 2024

A quick-win that I noticed. Opened a PR as seems more efficient than an issue. When running https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd?pli=1 on after scrolling a bit the page on https://mui.com/material-ui/react-button/ or any others. We get this:

SCR-20240908-sbjv SCR-20240909-twyi

which they explain in https://dequeuniversity.com/rules/axe/4.10/region?application=AxeChrome.

Related issue: https://www.drupal.org/project/back_to_top/issues/3254713. I think it matters because we want our component to have no error, so if the docs-infra has one, it creates noise.

Preview: https://deploy-preview-43663--material-ui.netlify.app/material-ui/react-button/

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work accessibility a11y scope: docs-infra Specific to the docs-infra product labels Sep 8, 2024
@mui-bot
Copy link

mui-bot commented Sep 8, 2024

Netlify deploy preview

https://deploy-preview-43663--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 328f3bc

@oliviertassinari oliviertassinari changed the title [docs-infra] Fix axe issue element without landmark [docs-infra] Fix axe issue scroll-to-top without landmark Sep 9, 2024
@oliviertassinari
Copy link
Member Author

Alright, having this under <main> seems to make sense: https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/. We don't really need to care so much anyway.

cc @vladmoroz for context. I was initially against having something like this https://docs.github.com/en/get-started/using-github/connecting-to-github

SCR-20240909-txtu

but it's kind of OK. If we look at the Google Analytics, it seems that this is not really used though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y bug 🐛 Something doesn't work scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants