USWDS-Site- accordion: Update multiselectable docs #1718
Merged
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.
Summary
Update accordion documentation to use the correct multi-select attribute.
Our current accordion documentation tells users to add the
aria-multiselectable="true"attribute to trigger a multi-select accordion group, but the attribute is actuallydata-allow-multiple.Correcting this will make sure that users are able to successfully trigger the multi-select variant, while also preventing accessibility errors.
Related issue
Closes uswds/uswds#4865
Preview link
Preview link: Accordion component page
To confirm:
data-allow-multipleinstead ofaria-multiselectable="true"(In fact, there is no reference toaria-multiselectablein the USWDS code base.)Before opening this PR, make sure you’ve done whichever of these applies to you:
git pull origin [base branch]to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch isdevelop).npm testand confirm that all tests pass.