Skip to content

Conversation

@subdavis
Copy link
Member

@subdavis subdavis commented Nov 6, 2025

ECHOES-1009

There are a number of problems with the legacy design system accordion that have been blocking me on other work. Rather than fix them, I thought it would be more helpful to get this new component in Echoes.

Screenshot 2025-11-06 at 1 51 16 PM

Accordion element

This is a very simple HTML native accordion using <details>. It is fully accessible by default and does not require additional ARIA tags. It already complies with the ARIA spec.

Style

The <Accordion> on cloud and server have 2 different designs and quite different implementations. I decided to make this a simple least-common-denominator that should work for both. It has no hover/focus style.

Behavior

It implements 2-direction binding so that it can be controlled externally, but also behaves correctly when isOpen is not used.

I'm happy to make any updates to this.

@netlify
Copy link

netlify bot commented Nov 6, 2025

Deploy Preview for echoes-react ready!

Name Link
🔨 Latest commit 0be8fdd
🔍 Latest deploy log https://app.netlify.com/projects/echoes-react/deploys/690d00c15bef15000837e785
😎 Deploy Preview https://deploy-preview-549--echoes-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Add Accordion Element ECHOES-1009 Add Accordion Element Nov 6, 2025
@subdavis subdavis force-pushed the bd/feature/add-Accordion-Element branch from 44688b0 to 0be8fdd Compare November 6, 2025 20:10
@sonarqube-next
Copy link

sonarqube-next bot commented Nov 6, 2025

@subdavis subdavis marked this pull request as draft November 12, 2025 19:51
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