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 <jonathan@reinink.ca>
This commit is contained in:
parent
1d82327bc2
commit
2574a881e5
1 changed files with 1 additions and 0 deletions
|
|
@ -1222,6 +1222,7 @@ export let corePlugins = {
|
|||
'.break-normal': { 'overflow-wrap': 'normal', 'word-break': 'normal' },
|
||||
'.break-words': { 'overflow-wrap': 'break-word' },
|
||||
'.break-all': { 'word-break': 'break-all' },
|
||||
'.break-keep': { 'word-break': 'keep-all' },
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue