Home > Software design >  React-js MUI Tooltip overlapping Popper
React-js MUI Tooltip overlapping Popper

Time:07-11

I want the MUI tooltip to go beneath the MUI Popper that is popper should overlap the tooltip. If I override the "MuiTooltip" or "MuiTooltip-popper"s z-index using external css, it's getting applied globally, which I don't want.

Is there a way to override either tooltip or popper behaviour & modify the z-index only for some portion ?

sandbox: Tooltip over Popper

CodePudding user response:

Remove external css and just add style prop to Popper component.

<Popper
   style={{
     zIndex: 1501
   }}
   anchorEl={buttonRef.current}
>
  • Related