-
Notifications
You must be signed in to change notification settings - Fork 45
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
Color pickers are displayed below the modal #206
Comments
Same problem. I tried this but it's not working. <MenuButtonTextColor
defaultTextColor={theme.palette.text.primary}
swatchColors={colors}
PopperProps={{ style: { zIndex: `${theme.zIndex.modal + 1} !important` }}}
/> |
@jfily I have opened a PR with a fix, need to handle couple of more things and it should be ready soon. |
That's worked me, but with modify z Index to 5 |
@AgrYpn1a So you can actually specify the To use it, you pass <MenuButtonTextColor PopperProps={{ container: myContainer }} />
<MenuButtonHighlightColor PopperProps={{ container: myContainer }} /> Alternatively, a z-index override of the <MenuButtonTextColor
PopperProps={{
sx: { zIndex: (theme) => `${theme.zIndex.tooltip} !important` },
}}
/> I think because of these options (particularly the Let me know if for some reason the above does not work. |
@sjdemartini I wish you have provided me with the |
@AgrYpn1a 😅 I wasn't sure myself how to handle that since I hadn't used the color pickers in that sort of context before, and unfortunately didn't have time earlier to look into it, but glad this PopperProps container works for you after all! Thanks again for the thorough report and for spending time looking into a fix |
|
jfyi, I've updated the default z-index of the bubble menus and poppers to use |
Describe the bug
When using
<MenuButtonTextColor />
and<MenuButtonHighlightColor />
color pickers in the TipTap placed in a modal, color pickers are rendered in a layer below the modal.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The same is happening with editing links, however, for links there is a special component
<LinkBubbleMenu />
that can be modified by passing an argument forcontainer
prop that is a reference to a container in which the popup should be rendered, if proper modal container is passed in, the link popup is rendered in a correct layer without having to mess withz-index
. The expected behaviour would be the same as it is for links.Screenshots
System (please complete the following information)
extensions
array used for the editor:The text was updated successfully, but these errors were encountered: