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(theme-classic): add missing role=region to SkipToContent #6288

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

JoshuaKGoldberg
Copy link
Contributor

Motivation

Even the Skip to main content link on a page needs to be in a region per aXe.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

  1. Visit a new Docusaurus site with the classic theme, such as today's https://typescript-eslint.io
  2. Run aXe on it such as with the aXe browser extensions and Settings > Enable Best Practices enabled

Fixes #6252

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jan 7, 2022
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review January 7, 2022 16:03
@netlify
Copy link

netlify bot commented Jan 7, 2022

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: c07a0b2

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61d86436fac49b00070b316f

😎 Browse the preview: https://deploy-preview-6288--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Jan 7, 2022

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 91
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-6288--docusaurus-2.netlify.app/

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jan 7, 2022
@slorber slorber changed the title fix(docusaurus-theme-classic): add missing role=region to SkipToContent fix(theme-classic): add missing role=region to SkipToContent Jan 7, 2022
@slorber
Copy link
Collaborator

slorber commented Jan 7, 2022

Thanks 👍

@slorber slorber merged commit bcc05e2 into facebook:main Jan 7, 2022
@JoshuaKGoldberg JoshuaKGoldberg deleted the skiptocontent-role-region branch January 8, 2022 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aXe / accessibility: missing region around Skip link in theme-classic
3 participants