Click to change state, then click to open overlay

New figma user here, and with basic knowledge of components . I have a click interaction embedded in a component that changes the variant. I would like to be able to click again to open a related overlay on the side of the frame I am currently making. When I add another click to open an overlay, it overrides the state change click. This seems to be by design. How should I go about achieving this?

A frame can only have one of the same type of interaction. You can either add the second interaction to the variant (but then you don’t have a click interaction to go back to the default variant), or you can create another element inside the component that is used specifically for this purpose.

1 Like

Fair enough. I appreciate your breakdown. I just used another element closeby to launch the overlay.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.