Skip to content

Update language selector component with accessibility test results. - #3150

Merged
annepetersen merged 22 commits into
mainfrom
js-fix-3123
Apr 2, 2025
Merged

Update language selector component with accessibility test results.#3150
annepetersen merged 22 commits into
mainfrom
js-fix-3123

Conversation

@juliasolorzano

@juliasolorzano juliasolorzano commented Mar 26, 2025

Copy link
Copy Markdown

@amycole501 amycole501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • On the first check under screen reader it's for [3.1.2 Language of Parts] WCAG AA (https://www.w3.org/TR/WCAG21/#language-of-parts)
  • On check 2.4.6, under the bold "The language selector component may not pass all elements of this test." add "The language selector may be confusing to some users.
    We have logged this issue and are prioritizing it. Learn more about this issue on GitHub.
  • On check 2.4.6 remove the redundant "The language selector may not pass all elements of this test." (The one that isn't bold.)
  • On check 3.2.2 remove the redundant "The language selector may not pass all elements of this test." (The one that isn't bold.)
  • On check 3.2.2 under the bold "The language selector component may not pass all elements of this test." add "Users may not expect the language of the page to change" We have logged this issue and are prioritizing it. Learn more about this issue on GitHub.
  • On check 2.4.7 change "has" to "have"

@juliasolorzano

Copy link
Copy Markdown
Author

@amycole501 all of the fixes are now live on the preview url. Please note that the The language selector may not pass all elements of this test. is hard coded into the template.

@amycole501

amycole501 commented Mar 27, 2025

Copy link
Copy Markdown
Contributor

@juliasolorzano

juliasolorzano commented Mar 28, 2025

Copy link
Copy Markdown
Author

@amycole501 the two GH issues have been added, per the hard coded content in the template and the update has been made to 3.1.2. It looks like that WCAG criterion had not been added to the ally test files before and needed to be directly added, see commit here.

@amycole501 amycole501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few minor changes:

  • On 2.4.6 move this sentence "The language selector may be confusing to some users." to right before "We have logged this issue and are prioritizing it". So it'll now read "The language selector may be confusing to some users. We have logged this issue and are prioritizing it."

  • On 3.2.2 do the same thing. Move "Users may not expect the language of the page to change." to right before "We have logged this issue..."

  • On 4.1.2 add a comma after "example". So it would read For example, “List, with eight items”.

@juliasolorzano

juliasolorzano commented Mar 28, 2025

Copy link
Copy Markdown
Author
  • On 2.4.6 move this sentence "The language selector may be confusing to some users." to right before "We have logged this issue and are prioritizing it". So it'll now read "The language selector may be confusing to some users. We have logged this issue and are prioritizing it."
  • On 3.2.2 do the same thing. Move "Users may not expect the language of the page to change." to right before "We have logged this issue..."

@amycole501 for the above two requests, the highlighted content in this screenshot is hard coded into the template and cannot be customized without effecting other page content. This would be a major change to our template structure, but let me know how you would like to proceed.

Screenshot 2025-03-28 at 12 52 53 PM

On 4.1.2 add a comma after "example". So it would read For example, “List, with eight items”.

This has been fixed and should be viewable on the preview url.

@amycole501

Copy link
Copy Markdown
Contributor

How was it done on the input mask page? https://designsystem.digital.gov/components/input-mask/accessibility-tests/

@juliasolorzano

Copy link
Copy Markdown
Author

@amycole501 ah yes! There is a customizable field that you can add that content to. It should be updated now on the the preview url.

@amycole501 amycole501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two minor updates:

  • On 2.4.6 remove the black "The language selector may be confusing to some users."
  • On 3.2.2 remove the black "Users may not expect the language of the page to change."

@juliasolorzano

Copy link
Copy Markdown
Author

@amycole501 those updates have been made are will be viewable on the preview url once the build completes for the pages build.

amycole501
amycole501 previously approved these changes Mar 31, 2025

@amycole501 amycole501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Thanks!

@amycole501

Copy link
Copy Markdown
Contributor

@juliaelman is this blocked from passing all the tests and/or do we need another reviewer?

@heymatthenry

heymatthenry commented Apr 1, 2025 via email

Copy link
Copy Markdown
Contributor

@juliasolorzano

Copy link
Copy Markdown
Author

@amycole501 build is fixed here. Re-requesting your review so we can get this merged in 💛

@annepetersen annepetersen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@annepetersen
annepetersen merged commit 5e9b218 into main Apr 2, 2025
@annepetersen
annepetersen deleted the js-fix-3123 branch April 2, 2025 21:38
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.

USWDS-Site: Publish language selector accessibility checklists page

4 participants