Skip to content

Comments

fix(theme-classic): improve aria label of color mode toggle#6674

Merged
Josh-Cena merged 2 commits intomainfrom
jc/toggle-aria-label
Feb 16, 2022
Merged

fix(theme-classic): improve aria label of color mode toggle#6674
Josh-Cena merged 2 commits intomainfrom
jc/toggle-aria-label

Conversation

@Josh-Cena
Copy link
Collaborator

Motivation

Close #6665.

Have you read the Contributing Guidelines on pull requests?

Yes

@Josh-Cena Josh-Cena added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Feb 14, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 14, 2022
@Josh-Cena
Copy link
Collaborator Author

@JoshuaKGoldberg The GitHub review requesting panel is pretty awkward and I can't find your name. If you can take a look and see if your screenreader reads something better, it would be great.

@netlify
Copy link

netlify bot commented Feb 14, 2022

@github-actions
Copy link

github-actions bot commented Feb 14, 2022

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 63
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 92

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

@github-actions
Copy link

github-actions bot commented Feb 14, 2022

Size Change: +296 B (0%)

Total Size: 780 kB

Filename Size Change
website/build/assets/js/main.********.js 589 kB +273 B (0%)
ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 48 kB 0 B
website/build/assets/css/styles.********.css 105 kB 0 B
website/build/index.html 37.6 kB +23 B (0%)

compressed-size-action

})
: translate({
message: 'light mode',
id: 'theme.colorToggle.ariaLabel,mode.light',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be . not ,?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch!

Copy link
Contributor

@lex111 lex111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I'm not an expert but in general looks good to me, thank you!

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: polish This PR adds a very minor behavior improvement that users will enjoy.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

a11y: light & dark mode checkbox ambiguous on current state ("checked")

5 participants