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

Added aria-hidden to AccordionContent when closed #2338

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

it-vegard
Copy link
Contributor

Fixes bug where label text for Radio components is sometimes left out of the accessibility tree when being hidden/displayed by an Accordion Ref: https://nav-it.slack.com/archives/C7NE7A8UF/p1695723000232659

Description

Radio labels inside of Accordions are sometimes left out of the accessibility tree in the latest version of Chrome.
Although it appears that this is an issue in Chrome, as it doesn't happen in other browsers or older versions of Chrome, we found a fix.

Change summary

  • Added aria-hidden="true" when Accordion item is closed

Fixes bug where label text for Radio components is sometimes left out of the accessibility tree when being hidden/displayed by an Accordion
Ref: https://nav-it.slack.com/archives/C7NE7A8UF/p1695723000232659
@changeset-bot
Copy link

changeset-bot bot commented Sep 28, 2023

🦋 Changeset detected

Latest commit: e5513ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-react Patch
@navikt/ds-css Patch
@navikt/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons Patch
@navikt/aksel Patch
@navikt/aksel-stylelint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

Storybook demo

Endringer til review: 1

7aa74a8b6 | 59 komponenter | 385 stories

@it-vegard it-vegard merged commit 05e63c1 into main Sep 28, 2023
@it-vegard it-vegard deleted the bugfix/accordion-breaks-radio-labels branch September 28, 2023 13:34
@github-actions github-actions bot mentioned this pull request Sep 28, 2023
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.

2 participants