Typical case, can be replicated with the Playground file too, if you just add a “while pressing”-variant to the button-component.
- Create a button variant with 3 states: default, hover, active
- Add the interactions: while hovering (default → hover), while pressing (hover → active)
- Add an overlay (f.e. modal) that opens when you click the button
- Test it out. When you click the button, the overlay opens, but the active state does not reset back to default. It persists, even after the overlay is closed. No way to get back to default state.