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

WysiwygEditor has some undocumented theme dependancies #2234

Open
aryzle opened this issue Jan 30, 2024 · 0 comments
Open

WysiwygEditor has some undocumented theme dependancies #2234

aryzle opened this issue Jan 30, 2024 · 0 comments
Labels
type: bug 🪲 Something isn't working

Comments

@aryzle
Copy link

aryzle commented Jan 30, 2024

Summary

Using WysiwygEditor like the docs suggest errors

Steps to reproduce

try to use https://remirror.io/docs/showcase/richtext in your React app

Expected results

The Wysiwyg Editor to render and work

Actual results

errors inside of Mui components that are used in the Wysiwyg Editor due to theme

Possible Solution

This was the minimum I needed to add to my theme to get this to work

import { extendTheme } from '@mui/joy/styles'

export const theme = extendTheme({
  ...
  shape: {
    borderRadius: 8,
  },
  palette: {
    action: {
      active: '#ffffff',
    },
    Tooltip: {
      bg: '#121416',
    },
  },
})

Screenshot(s)

image
@aryzle aryzle added the type: bug 🪲 Something isn't working label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant