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 ?
CodePudding user response:
Remove external css and just add style prop to Popper
component.
<Popper
style={{
zIndex: 1501
}}
anchorEl={buttonRef.current}
>