-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add aria-hidden to generic card icon and aria-required to Hosted Fields #910
Conversation
@@ -726,6 +726,61 @@ describe('CardView', () => { | |||
}); | |||
}); | |||
|
|||
test.only('sets aria-required attribute on hosted fields', () => { |
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.
Should this still say .only
?
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.
Good catch. Fixed.
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.
Looks good
Change looks good, but noticed the test isn't passing |
Yep, fixed the failing unit and publishing tests! |
Summary
Adds the
aria-hidden
label to the generic card icon in the upper left corner of the cardview so that screenreaders do not read it. Also, adds thearia-required
label to the input in the hosted fields so screen readers can accurately indicate it is a required field.Checklist
Authors