Skip to main content
Solved

Is it possible to make a toggle button on/off to open an overlay?

  • November 23, 2022
  • 3 replies
  • 1308 views

k_zdravkov

Hey guys!

I really liked a toggle button I saw in the community:

Figma

And I am wondering if I can incorporate it into my prototype. The thing is - I would like for it to open an overlay when toggled “on” and to close that overlay when toggled “off” ; I’ve been researching for a few hours now but it seems pretty “not straightforward”, what am I missing?

Best answer by Nate_G

@Lene_Olsen @k_zdravkov When you open an overlay any buttons underneath it will not be active (you can’t click them). So you could click a toggle button to open an overlay but then you wouldn’t be able to click the toggle button underneath the overlay to close it.

But you can get around this by showing/hiding an element.

View Prototype
Get Example File

View original
This topic has been closed for comments

3 replies

I have want to do the same. Does anyone have an answer to this?
Please and thank you! <3


Nate_G
  • Power Member
  • 180 replies
  • Answer
  • November 16, 2023

@Lene_Olsen @k_zdravkov When you open an overlay any buttons underneath it will not be active (you can’t click them). So you could click a toggle button to open an overlay but then you wouldn’t be able to click the toggle button underneath the overlay to close it.

But you can get around this by showing/hiding an element.

View Prototype
Get Example File


Aljacu
  • 1 reply
  • January 3, 2024

Thank you <3


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings