react-admin
react-admin copied to clipboard
Variant props is not applied on RichTextInput
What you were expecting:
I want to be able to use variant on RichTextInput in order to have a coherent style with other inputs.
What happened instead:
Use of variant props on RichTextInput doesn't change the style of the input.
Steps to reproduce:
Try to add variant="standard" on a RichTextInput
Related code:
See PostEdit.tsx in https://codesandbox.io/s/angry-https-x03e37
Environment
- React-admin version: 4
Thanks for reporting Thibault!
React Admin uses tiptap for the RichTextInput, consequently it does not support Material UI variant property.
We should port MUI theme configuration for the three variants over the tiptap/.ProseMirror context.
We do not intend to implement this in a close milestone but would be pleased to review any related pull request. 👍
There is no traction from the react-admin community on this feature request, so I'll close it. But feel free to open a PR is you have an implementation!