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

Dynamically applies aria-hidden attribute value to multi select element children #494

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

oisa
Copy link
Contributor

@oisa oisa commented Dec 9, 2024

No description provided.

@oisa oisa changed the title Dynamically applies aria-hidden attribute value Dynamically applies aria-hidden attribute value to multi select element children Dec 9, 2024
@oisa
Copy link
Contributor Author

oisa commented Dec 9, 2024

Dynamically applies aria-hidden attribute value to multi select element children - error upon list items becoming visible was:

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: input
Ancestor with aria-hidden: <input aria-hidden=​"true" class=​"nsw-form__checkbox-input js-multi-select__checkbox" type=​"checkbox" id=​"select-all-savings-programs-1-first-lap-swimming-voucher-3" value=​"true" checked>​

@oisa oisa merged commit 9fa0164 into master Dec 9, 2024
7 checks passed
@DFSIdigital DFSIdigital deleted the bugfix/multi-select-aria-hidden-error branch January 30, 2025 03:29
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.

1 participant