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: Accessibility Bugs #7264

Merged
merged 9 commits into from
Mar 11, 2024

Conversation

madalynrose
Copy link
Contributor

@madalynrose madalynrose commented Mar 7, 2024

Details

This PR fixes two accessibility bugs:

  • QuickAssessToAssessmentDialog does not redirect focus to the trigger button after it closes
  • Failure instance visual helper checkbox in issues table does not correctly update aria-checked/checked when it is toggled
Motivation

Accessibility Compliance

Context

For the dialog close focus bug, I moved the QuickAssessToAssessmentDialog to be inside the DetailsViewCommandBar like the other buttons that open dialogs. I managed focus the same way we do for the ReportExportDialog.

For the visual helper checkbox bug, we were only setting aria-checked and not checked on the checkbox, so now we explicitly set the checked attribute (which in turn updates aria-checked).

Pull request checklist

  • [N/A] Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

@madalynrose madalynrose requested a review from a team as a code owner March 7, 2024 20:37
@madalynrose madalynrose merged commit cf4814b into microsoft:main Mar 11, 2024
12 checks passed
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