-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#### Details This PR fixes two accessibility bugs: * `QuickAssessToAssessmentDialog` does not redirect focus to the trigger button after it closes * [before video](https://www.loom.com/share/6c19f10e23044a3a97064d79029b5e30) * [after video](https://www.loom.com/share/3b1799677d114a80ab54deb140b0e5d6) * Failure instance visual helper checkbox in issues table does not correctly update `aria-checked`/`checked` when it is toggled * [before video](https://www.loom.com/share/9ecd18aca30a44dc86697bea37238fde) * [after video](https://www.loom.com/share/02fdc17ca946461fb2d119c8de759150) ##### 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 <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [N/A] Addresses an existing issue: #0000 - [x] Ran `yarn fastpass` - [x] Added/updated relevant unit test(s) (and ran `yarn test`) - [x] Verified code coverage for the changes made. Check coverage report at: `<rootDir>/test-results/unit/coverage` - [x] PR title *AND* final merge commit title both start with a semantic tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). See `CONTRIBUTING.md`. - [x] (UI changes only) Added screenshots/GIFs to description above - [x] (UI changes only) Verified usability with NVDA/JAWS
- Loading branch information
1 parent
532ceb1
commit cf4814b
Showing
14 changed files
with
620 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.