Button pulls to front

0
Hi There’s a button on the app which comes to the front when you click on a drop down menu despite the fact that the button next to it is added via the exact same widget but doesn’t do that. Does anyone know how to stop it from doing that? Please see image.      
asked
1 answers
1

It looks to me like that button is selected, while the other one is probably not. This “selected” style seems to give it some property (z-index, absolute position, etc.) that is raising it above your dropdown. I would try adding a class to the dropdown, where you assign a higher z-index value. If that doesn’t work, you might need to add “position: absolute” as well.

Edit: See this guide for how to affect stacking with CSS – https://www.freecodecamp.org/news/z-index-explained-how-to-stack-elements-using-css-7c5aa0f179b3/ 

answered