From 1aa0ab57cc94bd1b2d5ab7756ea0a01df717b69c Mon Sep 17 00:00:00 2001 From: Andrew Cherniavskii Date: Wed, 15 May 2019 19:04:19 +0200 Subject: [PATCH] use color from theme --- packages/ra-input-rich-text/src/styles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ra-input-rich-text/src/styles.js b/packages/ra-input-rich-text/src/styles.js index f742c27e8be..f4b3d7ae1c1 100644 --- a/packages/ra-input-rich-text/src/styles.js +++ b/packages/ra-input-rich-text/src/styles.js @@ -1,6 +1,6 @@ import QuillSnowStylesheet from './QuillSnowStylesheet'; -export default { +export default theme => ({ '@global': Object.assign({}, QuillSnowStylesheet, { '.ra-rich-text-input': { '& .ql-editor': { @@ -35,7 +35,7 @@ export default { transform: 'scaleX(0)', transition: 'transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms', - backgroundColor: '#304ffe', + backgroundColor: theme.palette.primary.main, }, '& p:not(:last-child)': { @@ -131,4 +131,4 @@ export default { }, }, }), -}; +});