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

Add aria-hidden to generic card icon and aria-required to Hosted Fields #910

Merged
merged 10 commits into from
Nov 17, 2023

Conversation

jplukarski
Copy link
Contributor

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 the aria-required label to the input in the hosted fields so screen readers can accurately indicate it is a required field.

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@jplukarski jplukarski requested a review from a team as a code owner November 14, 2023 16:21
@@ -726,6 +726,61 @@ describe('CardView', () => {
});
});

test.only('sets aria-required attribute on hosted fields', () => {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

Copy link
Contributor

@ibooker ibooker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@oscarleonnogales
Copy link
Contributor

Change looks good, but noticed the test isn't passing

@jplukarski
Copy link
Contributor Author

Change looks good, but noticed the test isn't passing

Yep, fixed the failing unit and publishing tests!

@jplukarski jplukarski merged commit 53e5190 into main Nov 17, 2023
5 of 6 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.

3 participants