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(accordions): hide collapsed panel content #1662

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

jzempel
Copy link
Member

@jzempel jzempel commented Dec 7, 2023

Description

Provides an important accessibility fix that prevents focusable content from being accessed when an Accordion panel is collapsed. The approach here applies both the HTML inert attribute and transitional visibility to the panel content.

Detail

closes #1383

Checklist

  • 👌 design updates will be Garden Designer approved (add the designer as a reviewer)
  • 🌐 demo is up-to-date (npm start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • 🤘 renders as expected with Bedrock CSS (?bedrock)
  • 💂‍♂️ includes new unit tests. Maintain existing coverage (always >= 96%)
  • ♿ tested for WCAG 2.1 AA accessibility compliance
  • 📝 tested in Chrome, Firefox, Safari, and Edge

@jzempel jzempel requested a review from a team as a code owner December 7, 2023 20:10
@jzempel jzempel changed the title fix(accordions): hide non-expanded panel content fix(accordions): hide collapsed panel content Dec 7, 2023
@coveralls
Copy link

coveralls commented Dec 7, 2023

Coverage Status

coverage: 96.233% (+0.002%) from 96.231%
when pulling f33f24b on jzempel/accordion-visibility
into 3533523 on main.

Copy link

@fvzzy fvzzy left a comment

Choose a reason for hiding this comment

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

🙌

Copy link
Contributor

@smritimadan smritimadan left a comment

Choose a reason for hiding this comment

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

Nice! 🙌

@jzempel jzempel merged commit fa1f577 into main Dec 8, 2023
1 check passed
@jzempel jzempel deleted the jzempel/accordion-visibility branch December 8, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Accordions | Aria-hidden elements contain focusable elements
5 participants