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-switch): cannot use of ARIA attribute without role attribute #476

Merged
merged 1 commit into from
Jun 8, 2022
Merged

fix(theme-switch): cannot use of ARIA attribute without role attribute #476

merged 1 commit into from
Jun 8, 2022

Conversation

numToStr
Copy link
Contributor

@numToStr numToStr commented Jun 5, 2022

Fixes the following lighthouse error around accessibility

Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes.

And also fixes a warning in Chromium

Elements must only use allowed ARIA attributes: aria-label attribute cannot be used on a span with no valid role attribute.

Partially resolves #475

Fixes the following lighthouse error around accessibility

> Each ARIA `role` supports a specific subset of `aria-*` attributes. Mismatching these invalidates the `aria-*` attributes.

And also fixes a warning in Chromium

> Elements must only use allowed ARIA attributes: aria-label attribute cannot be used on a span with no valid role attribute.
@vercel
Copy link

vercel bot commented Jun 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview Jun 5, 2022 at 9:39AM (UTC)
1 Ignored Deployment
Name Status Preview Updated
nextra ⬜️ Ignored (Inspect) Jun 5, 2022 at 9:39AM (UTC)

@shuding
Copy link
Owner

shuding commented Jun 8, 2022

Thank you!

@numToStr numToStr deleted the patch-1 branch June 8, 2022 19:35
@numToStr
Copy link
Contributor Author

numToStr commented Jun 8, 2022

Thank you @shuding for merging. Can I ask you, would you be releasing a new alpha for blog theme?

@shuding
Copy link
Owner

shuding commented Jun 8, 2022

The current alpha for the blog theme has the latest code I think. Will confirm and do a release tomorrow if not!

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.

2 participants