Skip to content

Commit

Permalink
Merge pull request #3231 from cherniavskii/rich-text-input-color
Browse files Browse the repository at this point in the history
[RichTextInput] Use color from theme
  • Loading branch information
djhi authored May 15, 2019
2 parents fcbf647 + 1aa0ab5 commit 26765f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ra-input-rich-text/src/styles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import QuillSnowStylesheet from './QuillSnowStylesheet';

export default {
export default theme => ({
'@global': Object.assign({}, QuillSnowStylesheet, {
'.ra-rich-text-input': {
'& .ql-editor': {
Expand Down Expand Up @@ -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)': {
Expand Down Expand Up @@ -131,4 +131,4 @@ export default {
},
},
}),
};
});

0 comments on commit 26765f3

Please sign in to comment.