Skip to content

Commit

Permalink
[@mantine/tiptap] Fix incorrect styles on placeholder component (#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Jan 17, 2023
1 parent ac79a90 commit 2fd1ca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mantine-tiptap/src/Content/Content.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export default createStyles(

content: {
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,
padding: theme.spacing.md,
borderRadius: theme.fn.radius(),

'& .ProseMirror': {
outline: 0,
padding: theme.spacing.md,
},

'& .ProseMirror > *:last-child': {
Expand All @@ -117,6 +117,7 @@ export default createStyles(

'& .ProseMirror p.is-editor-empty:first-of-type::before': {
content: 'attr(data-placeholder)',
pointerEvents: 'none',
userSelect: 'none',
float: 'left',
height: 0,
Expand Down

0 comments on commit 2fd1ca7

Please sign in to comment.