Skip to main content
Participant
April 30, 2022
Answered

Toggle States appearing on top of everything else

  • April 30, 2022
  • 1 reply
  • 479 views

Hi!

 

I was wondering if anyone has tried making it so just the toggle state layers appear in front of all other layers, I was trying to do this today with multiple layers and when I click to bring the toggle state layer to the front is brings the default layer state to the front as well.

 

Any help is very appreciatted, Thanks!

 

 

This topic has been closed for replies.
Correct answer AkinGn

Hi @Luke-L, as far as I know, you can rearrange the layers in a component's inner state, if that component includes other components, I don't think it's possible to rearrange layers just for a state of the outer component. (Or should I say, you cannot change a component's z-index independetly for different states, its z-index is going to remain same in all states) Recently after a question I came up with a tutorial idea for a workaround for an image gallery prototype, you can see it here to give you an idea: https://www.youtube.com/watch?v=VmHoCJ3eqhU Hope this helps! 

1 reply

AkinGn
Community Expert
AkinGnCommunity ExpertCorrect answer
Community Expert
May 9, 2022

Hi @Luke-L, as far as I know, you can rearrange the layers in a component's inner state, if that component includes other components, I don't think it's possible to rearrange layers just for a state of the outer component. (Or should I say, you cannot change a component's z-index independetly for different states, its z-index is going to remain same in all states) Recently after a question I came up with a tutorial idea for a workaround for an image gallery prototype, you can see it here to give you an idea: https://www.youtube.com/watch?v=VmHoCJ3eqhU Hope this helps! 

Luke-LAuthor
Participant
May 17, 2022

Thanks for the reply! I'm gunna have a look at the tutorial and see if I can find a way around my issue 🙂