sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
320 stars 44 forks source link

Reduce bubble menu default elevation, and allow for customization of Paper props #33

Closed sjdemartini closed 1 year ago

sjdemartini commented 1 year ago

Typically, bubble menus are interacted with alongside the content, so with an elevation={10} in light mode in MUI, it would tend to cast a relatively large shadow, which could be annoying (e.g. with the table menu) if you're trying to edit the content that's directly next to the menu. This adjusts it down slightly while still maintaining enough elevation to be visually distinct from the editor content.

Now users can also tweak this and other fields when they use the TableBubbleMenu/LinkBubbleMenu/ControlledBubbleMenu.