Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-index? #19

Closed
chrisdrackett opened this issue May 2, 2017 · 3 comments
Closed

z-index? #19

chrisdrackett opened this issue May 2, 2017 · 3 comments

Comments

@chrisdrackett
Copy link

My poppers are often showing up under other elements on the page. I'm trying to figure out a way to add a z-index to the popper, but figured it was worth asking here in case others have already solved this issue

@FezVrasta
Copy link
Member

z-index is a sensitive problem and must be handled properly case by case.

That's why Popper.js doesn't set any z-index by default.

You should really end up with the best solution for you and manually set them I think.

@souporserious
Copy link
Collaborator

souporserious commented May 2, 2017

@chrisdrackett this was the exact reason for making everything compose-able :) you can add an inline style, classname or whatever you want.

I take an approach like this for any personal settings I want for components:

const MyPopper = ({ style, ...props }) => (
  <Popper style={{ zIndex: 100, ...style }} {...props}/>
)

@FO-Usain
Copy link

FO-Usain commented Dec 1, 2023

I have the same issue, but my Popover is the menu-list of mui-tel-input and I don't have access to the component in order for me to style it manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants