I am almost brand-new in Figma. I have learned how to change the color of the button when pressed. And it works nice and perfect. But I have the following problem - when the button opens an overlay, that button changes the color permanently, not just “while pressing”. My other color-changing buttons, which open another screen (but not an overlay) restore their initial color after the releasing it. But when I apply the same “technique” to create a button for an overlay - it changes color, and remains changed even after the button has been released, without restoring its initial color. And that happens only with overlays.
Could someone help me with an advise?