Skip to content

Commit 210948a

Browse files
kenshantaowlstronaut
authored andcommitted
word-break for list and paragraph elements
1 parent c89a3ee commit 210948a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mdx/components.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const UnorderedList = styled.ul`
180180
}
181181
182182
li {
183-
word-break: break-all;
183+
word-break: break-word;
184184
}
185185
186186
li > p {
@@ -196,6 +196,7 @@ export const OrderedList = UnorderedList.withComponent('ol')
196196

197197
export const Paragraph = styled.p`
198198
margin: 0 0 ${themeGet('space.3')};
199+
word-break: break-word;
199200
`
200201

201202
export const Table = styled.table`

0 commit comments

Comments
 (0)