Open isaacoviedo opened 4 months ago
Struggling a bit with the same issue. Would it be a solution to add a color attribute to the RichTextEditor like a normal mui text-field? (so we can choose ie. "secondary")
A workaround I use for now is to just change the primary mui theme color for my component:
const customTheme = createTheme({
...theme,
palette: {
...theme.palette,
primary: {
main: theme.palette.secondary.main // or whatever color you want for the border
}
},
})
return (
<ThemeProvider theme={customTheme}>
<MyEditorComponent/>
</ThemeProvider>
)
Notice that this also changes the color of quite a few buttons around town... which is nice in my use-case but might not fit others.
Hello 👋
I'm trying to override the
FieldContainer
border styles applied when the component is focused - specifically these styles here. Can someone help suggest on how to go about doing this? I've tried using theRichTextFieldProps.classes
prop on theRichTextEditor
component but it doesn't seem to be doing the trick.Currently my theme is making the border orange on focus which I'd like to change to black:
Current effort: