-
Notifications
You must be signed in to change notification settings - Fork 10
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
Usagov 1919 consistent alert messages update #2028
Conversation
…text in the alert component
…for the alert component
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.
Confirmed the voice reader announces the info region like you described in the validation steps. Only change is to reuse an existing CSS class.
.usa-screen-reader { | ||
border: 0; | ||
clip: rect(0, 0, 0, 0); | ||
height: 1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
width: 1px; | ||
word-wrap: normal; | ||
} |
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.
There is an existing .visuallyhidden
class that is the same as this (save a line or two). Let's re-use the existing class instead of adding a new one.
We could rename it. That involves touching a bunch of files. Looks like 4 in the theme folder, and benefitSearch.js
in the modules\custom folders.
Hi @omerida I removed the duplicate class and used the existing .visuallyhidden class. This is ready to verify, thanks |
@developer43 I merged this PR but I'm not sure if we're supposed to deploy to dev atm. |
Jira Task
https://cm-jira.usa.gov/browse/USAGOV-1919
Description
Make alert components accessible with a screen reader
Type of Changes
Testing Instructions
Change Requirements
Validation Steps
Security Review
Reviewer Reminders
Post PR Approval Instructions
Follow these steps as soon as you merge the new changes.
Review in Test
and add a comment. State whether the change is already visible on cms-dev.usa.gov and beta-dev.usa.gov, or if the deployment is still in process.