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

fix: misapplied attribute #2396

Merged
merged 1 commit into from
May 9, 2023
Merged

fix: misapplied attribute #2396

merged 1 commit into from
May 9, 2023

Conversation

werdnanoslen
Copy link
Contributor

Summary

USWDS's accordion component has a 'multiselectable' variant, however that is different from the aria-multiselectable attribute. The latter is used for elements that are selectable (e.g. in a <select>) to some other end, whereas the former is simply toggled open/closed to its own end. As such, I replaced the aria-multiselectable attribute with data-allow-multiple as USWDS intended.

Related Issues or PRs

Resolves #2204

How To Test

Open Axe on Chrome and inspect the multiselectable accordion page to find no errors:
image

Screenshots (optional)

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Warnings
⚠️ This PR does not include changes to tests, even though it affects source code.
⚠️ This PR does not include changes to storybook, even though it affects component code.

Generated by 🚫 dangerJS against 1c58241

@werdnanoslen werdnanoslen merged commit dafbb4e into main May 9, 2023
@werdnanoslen werdnanoslen deleted the an-accordionmulti-2204 branch May 9, 2023 16:47
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.

[fix] Accordion component fails a11y test when multiselectable is true
2 participants