Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix: download toggle button accessibility/translation support #2928

Merged
merged 6 commits into from Oct 18, 2022

Conversation

EmmaDawsonDev
Copy link
Contributor

Description

The second toggle button on the download page didn't have correct aria-checked or aria-label values due to a copy-paste mistake I am guessing. They are now updated to match the corresponding button.

While I was there I added them to the translation files ready to be translated.

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run lint:js -- --fix and/or npm run lint:md -- --fix for my JavaScript and/or Markdown changes.
    • This is important as most of the cases your code changes might not be correctly linted
  • I have run npm run test to check if all tests are passing, and/or npm run test -- -u to update snapshots if I created and/or updated React Components.
  • I have checked that the build works locally and that npm run build work fine.
  • I've covered new added functionality with unit tests if necessary.

@codecov-commenter
Copy link

Codecov Report

Base: 66.02% // Head: 67.08% // Increases project coverage by +1.05% 🎉

Coverage data is based on head (74ec854) compared to base (fd57b87).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2928      +/-   ##
==========================================
+ Coverage   66.02%   67.08%   +1.05%     
==========================================
  Files         118      136      +18     
  Lines        1351     1531     +180     
  Branches      342      357      +15     
==========================================
+ Hits          892     1027     +135     
- Misses        422      462      +40     
- Partials       37       42       +5     
Impacted Files Coverage Δ
src/__fixtures__/hooks.tsx 100.00% <ø> (ø)
src/__fixtures__/page.tsx 94.11% <ø> (-5.89%) ⬇️
...components/ApiComponents/Components/ApiHeading.tsx 100.00% <ø> (+100.00%) ⬆️
...rc/components/ApiComponents/Components/ApiLink.tsx 100.00% <ø> (+100.00%) ⬆️
...ents/ApiComponents/Components/SourceLink/index.tsx 50.00% <ø> (+50.00%) ⬆️
...ApiComponents/Components/VersionSelector/index.tsx 100.00% <ø> (+100.00%) ⬆️
src/components/ApiComponents/index.tsx 100.00% <ø> (+100.00%) ⬆️
src/components/ArticleComponents/Alert/index.tsx 100.00% <ø> (ø)
...ents/ArticleComponents/AuthorList/Author/index.tsx 88.88% <ø> (ø)
.../components/ArticleComponents/AuthorList/index.tsx 100.00% <ø> (ø)
... and 171 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/i18n/locales/en.json Show resolved Hide resolved
Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

Good stuff! 🌈

src/i18n/locales/fr.json Outdated Show resolved Hide resolved
src/i18n/locales/fr.json Outdated Show resolved Hide resolved
@EmmaDawsonDev
Copy link
Contributor Author

I've updated this according to the comments. Let me know if there's anything else needs doing.

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

LGTM!

@ovflowd ovflowd added the hacktoberfest-accepted Used to label PR's label Oct 18, 2022
@ovflowd ovflowd enabled auto-merge (squash) October 18, 2022 19:17
@ovflowd ovflowd merged commit 69f9780 into nodejs:main Oct 18, 2022
@EmmaDawsonDev EmmaDawsonDev deleted the fix/download-toggle-a11y branch October 18, 2022 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hacktoberfest-accepted Used to label PR's
Projects
None yet
7 participants