We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 942a0a3 commit 2c6f33aCopy full SHA for 2c6f33a
packages/@sanity/field/src/types/portableText/diff/components/Paragraph.css
packages/@sanity/field/src/types/portableText/diff/components/Paragraph.tsx
@@ -1,6 +1,13 @@
1
import React from 'react'
2
-import styles from './Paragraph.css'
+import styled from 'styled-components'
3
+
4
+const StyledParagraph = styled.p`
5
+ text-transform: none;
6
+ white-space: wrap;
7
+ overflow-wrap: break-word;
8
+ margin: 0;
9
+`
10
11
export default function Paragraph({children}: {children: React.ReactNode}): JSX.Element {
- return <div className={styles.root}>{children}</div>
12
+ return <StyledParagraph>{children}</StyledParagraph>
13
}
0 commit comments