Great tip here from Jhey. He advises using a
:root parent of the button when in “pressed” state and sets a root-level custom property to “on”.
A disclosure component is the formal name for the pattern where you click a button to reveal or hide content. This includes things like a “show more/show less” interaction for some descriptive text below a YouTube video, or a hamburger menu that reveals and hides when you click it.
See all tags.