Use the Details HTML Element for the Collapse Component #1283
Tyler-Petrov
started this conversation in
Feature Requests / Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be a good idea to use the
<details>
and<summary>
elements for the collapse component. It would allow functionality even when JavaScript is disabled on the client. Animations are also supported with the support of theinterpolate-size: allow-keywords;
css property as well, although browser support isn't great atm. I don't think this is a huge issue as the current collapse, as far as I know, doesn't use any animations.I moved to using
<details>
and<summary>
in one of my own projects, and I haven't run into any issues with it.Beta Was this translation helpful? Give feedback.
All reactions