-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CRDCDH-633 Accessibility Audit & 508 Compliance #230
Merged
Merged
Conversation
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
Also includes a few simple compliance fixes
- PageBanner did not provide a L1 heading - PageBanner did not use sequential headings - Page loader did not have a aria label - Gov. shutdown header did not have a unique label - Invalid `aria-selected` on ProgressBar link - Invalid `h6` on StatusBar titles
- User Name / Login was not contained in a UL - Copy Submission ID had no content and needed a label - Missing label relationships on User Profile - Page headings should not be empty (PageBanner) - Missing label relationships on Organization Edit
- All footers rendered causing duplicate labels - TablePagination rows per page input missing label - Hidden checkboxes on sect. A/B missing labels - TextInput missing label relationship - Tooltip button does not have discernible txt - SwitchInput missing label relationship - SelectInput ProxySelect missing label relationship - DatePickerInput missing label relationship - FormGroupCheckbox proxy c-box missing label relationship - File Types table missing aria-labels on all fields
- Data Submission metadata upload input missing aria-label - API Token Dialog copy token button missing label - API Token fake input missing label - User List filters missing aria-label relationships - User Edit missing aria-label relationships - Organization List filters missing aria-label relationships - Organization Edit missing aria-label relationships
- Questionnaire ListView loader missing aria-label - Data Submissions ListView loader missing aria-label - Data Submissions Batch Table loader missing aria-label - Organization List View loader missing aria-label - User List View loader missing aria-label - Footer newsletter asterisk did not meet min contrast ratio - Questionnaire Section D Remove File Type button empty with no label
- Fix all header sizes being rendered at the same time - Multiple header links with identical IDs
Still need:
|
Alejandro-Vega
requested changes
Dec 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add missing @types/jest-axe dependency to avoid type issues. See https://www.npmjs.com/package/jest-axe
This also migrates other type dependencies to devDeps
Alejandro-Vega
approved these changes
Dec 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR audits our frontend implementation for any accessibility or 508 issues and fixes them. The specific changes are detailed below.
This audit was partially supported by the chrome extensions:
Color Scheme Audit
“Start a Submission Request” button
color: #fff
background: #22A584
“View” submission request button
color: #156071
background: #74D9E7
Approved “Review Comments” submission request button
color: #0B7F99
background: #1976D2
“CRDC Submission Request” in “Submission History” dialog
color: #98A7C6
background: #2E4D7B
Questionnaire Switch (No / Yes toggle)
disabled color: #89A2A7 (The color thats shown when the option is not picked)
“Save” submission request button
color: #fff
background: #22A584
Data Submission “Data Upload” table headers
color: #fff
background: #5C8FA7
“No Data Found” message on tables (Questionnaire, Data Upload, Organizations, Users, ….)
color: #AAA
page backgrounds: #fff
Data Submission “Status” label (above the actual status)
color: #1D91AB
background: XXX (image)
“Data Submission Request” in “Data Submission History” dialog
color: #98A7C6
background: #2E4D7B
“User Profile” header text on User Profile
color: #fff
background: XXX (image)
“Cancel” button on Edit User page
color: #949494
background: transparent
“Add Organization” button on Manage Organizations
color: #fff
background: #22A584
“Edit Organization” header text on Organization Management
color: #fff
background: XXX (image)
“Cancel” button on Edit Organization page
color: #949494
background: transparent
Change Details (Specifics)
aria-selected
on ProgressBar linkh6
on StatusBar titlesul
>a
instead oful
>li
>a
)Related Ticket(s)
https://tracker.nci.nih.gov/browse/CRDCDH-633