Skip to content

Commit 2574a88

Browse files
k-utsumireinink
andauthored
Add break-keep utility (#9393)
* ✨ Add `word-break: keep-all` with `keep-all` ref. https://developer.mozilla.org/en-US/docs/Web/CSS/word-break `whitespace-nowrap` and `word-break: keep-all` behave differently in different browsers. Demo: https://jsfiddle.net/h1aj6nvy/ There is a difference between Firefox and Google chrome. * Rename `keep-all` to `break-keep` Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 1d82327 commit 2574a88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/corePlugins.js

+1
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ export let corePlugins = {
12221222
'.break-normal': { 'overflow-wrap': 'normal', 'word-break': 'normal' },
12231223
'.break-words': { 'overflow-wrap': 'break-word' },
12241224
'.break-all': { 'word-break': 'break-all' },
1225+
'.break-keep': { 'word-break': 'keep-all' },
12251226
})
12261227
},
12271228

0 commit comments

Comments
 (0)