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

#1612: Accessibility improvement - domain request modal gets read out twice - [ZA] #3574

Merged
merged 4 commits into from
Mar 4, 2025

Conversation

zandercymatics
Copy link
Contributor

@zandercymatics zandercymatics commented Feb 26, 2025

Ticket

Resolves #1612

Changes

  • Fixes a bug with the USWDS library where role="dialog" would cause screenreaders to re-read content needlessly on the domain request delete modal and member delete modal

Context for reviewers

There is a bug with the USWDS library (reproducible on their docs) wherein screenreaders re-read content twice. I traced this down to a bad role that was added on the wrapper element, which will fix this issue where modals are used all across the app.

I have flagged this as bug on the uswds repo

Setup

This change impacts all modals equally, but it would be good to test out the domain request submit modal and the delete modals for member and domain request. To replicate the original issue, you will need to use a screenreader app. On windows, that would be narrator. On mac that would be "VoiceOver". Then, trigger a modal dialog and wait for it to read through the entire modal. The old behavior would re-read the content after everything was read through, and this should no longer happen.

Code Review Verification Steps

As the original developer, I have

Satisfied acceptance criteria and met development standards

  • Met the acceptance criteria, or will meet them in a subsequent PR
  • Created/modified automated tests
  • Update documentation in READMEs and/or onboarding guide

Ensured code standards are met (Original Developer)

  • If any updated dependencies on Pipfile, also update dependencies in requirements.txt.
  • Interactions with external systems are wrapped in try/except
  • Error handling exists for unusual or missing values

Validated user-facing changes (if applicable)

  • Tag @dotgov-designers in this PR's Reviewers for design review. If code is not user-facing, delete design reviewer checklist
  • Verify new pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
  • Checked keyboard navigability
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)

As a code reviewer, I have

Reviewed, tested, and left feedback about the changes

  • Pulled this branch locally and tested it
  • Verified code meets all checks above. Address any checks that are not satisfied
  • Reviewed this code and left comments. Indicate if comments must be addressed before code is merged
  • Checked that all code is adequately covered by tests
  • Verify migrations are valid and do not conflict with existing migrations

Validated user-facing changes as a developer

Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.

  • New pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
  • Checked keyboard navigability
  • Meets all designs and user flows provided by design/product
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
  • (Rarely needed) Tested as both an analyst and applicant user

As a designer reviewer, I have

Verified that the changes match the design intention

  • Checked that the design translated visually
  • Checked behavior. Comment any found issues or broken flows.
  • Checked different states (empty, one, some, error)
  • Checked for landmarks, page heading structure, and links

Validated user-facing changes as a designer

  • Checked keyboard navigability
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
  • Tested with multiple browsers (check off which ones were used)
    • Chrome
    • Microsoft Edge
    • FireFox
    • Safari
  • (Rarely needed) Tested as both an analyst and applicant user

References

Screenshots

@zandercymatics zandercymatics changed the title [draft] #1612: Accessibility improvement - modal gets read out twice [draft] #1612: Accessibility improvement - domain request modal gets read out twice Feb 26, 2025
Copy link

🥳 Successfully deployed to developer sandbox za.

@zandercymatics zandercymatics changed the title [draft] #1612: Accessibility improvement - domain request modal gets read out twice [draft] #1612: Accessibility improvement - domain request modal gets read out twice - [ZA] Feb 26, 2025
@zandercymatics zandercymatics changed the title [draft] #1612: Accessibility improvement - domain request modal gets read out twice - [ZA] #1612: Accessibility improvement - domain request modal gets read out twice - [ZA] Feb 26, 2025
@CocoByte CocoByte self-assigned this Feb 27, 2025
Copy link

github-actions bot commented Mar 3, 2025

🥳 Successfully deployed to developer sandbox za.

@zandercymatics
Copy link
Contributor Author

@rachidatecs This one might be of interest to you, USWDS edits

Copy link

github-actions bot commented Mar 3, 2025

🥳 Successfully deployed to developer sandbox za.

Copy link

github-actions bot commented Mar 3, 2025

🥳 Successfully deployed to developer sandbox za.

@rachidatecs rachidatecs self-assigned this Mar 4, 2025
Copy link

github-actions bot commented Mar 4, 2025

🥳 Successfully deployed to developer sandbox za.

@zandercymatics zandercymatics merged commit bdd8f90 into main Mar 4, 2025
9 of 10 checks passed
@zandercymatics zandercymatics deleted the za/1612-modal-double-readout-attempt-2 branch March 4, 2025 17:24
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.

Accessibility improvement: modal gets read out twice
4 participants