@@ -225,26 +225,25 @@ const Root = styled('div', {
225225 [ `& .${ classes . editorContent } ` ] : {
226226 width : '100%' ,
227227 '& .ProseMirror' : {
228- backgroundColor : theme . palette . background . default ,
229- borderColor :
230- theme . palette . mode === 'light'
231- ? 'rgba(0, 0, 0, 0.23)'
232- : 'rgba(255, 255, 255, 0.23)' ,
228+ backgroundColor : ( theme . vars || theme ) . palette . background . default ,
229+ borderColor : ( theme . vars || theme ) . palette . divider ,
233230 borderRadius : theme . shape . borderRadius ,
234231 borderStyle : 'solid' ,
235232 borderWidth : '1px' ,
236233 padding : theme . spacing ( 1 ) ,
237234
238235 '&[contenteditable="false"], &[contenteditable="false"]:hover, &[contenteditable="false"]:focus' :
239236 {
240- backgroundColor : theme . palette . action . disabledBackground ,
237+ backgroundColor : ( theme . vars || theme ) . palette . action
238+ . disabledBackground ,
241239 } ,
242240
243241 '&:hover' : {
244- backgroundColor : theme . palette . action . hover ,
242+ backgroundColor : ( theme . vars || theme ) . palette . action . hover ,
245243 } ,
246244 '&:focus' : {
247- backgroundColor : theme . palette . background . default ,
245+ backgroundColor : ( theme . vars || theme ) . palette . background
246+ . default ,
248247 } ,
249248 '& p' : {
250249 margin : '0 0 1em 0' ,
0 commit comments