Add support for text-wrap property (#11320)
Update changelog Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
This commit is contained in:
parent
d72c1893c8
commit
9caa9547b2
5 changed files with 28 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Add `svh`, `lvh`, and `dvh` values to default `height`/`min-height`/`max-height` theme ([#11317](https://github.com/tailwindlabs/tailwindcss/pull/11317))
|
||||
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
|
||||
- Add `text-wrap` utilities including `text-balance` ([#11320](https://github.com/tailwindlabs/tailwindcss/pull/11320))
|
||||
|
||||
## [3.3.7] - 2023-12-18
|
||||
|
||||
|
|
|
|||
|
|
@ -1529,6 +1529,14 @@ export let corePlugins = {
|
|||
})
|
||||
},
|
||||
|
||||
textWrap: ({ addUtilities }) => {
|
||||
addUtilities({
|
||||
'.text-wrap': { 'text-wrap': 'wrap' },
|
||||
'.text-nowrap': { 'text-wrap': 'nowrap' },
|
||||
'.text-balance': { 'text-wrap': 'balance' },
|
||||
})
|
||||
},
|
||||
|
||||
wordBreak: ({ addUtilities }) => {
|
||||
addUtilities({
|
||||
'.break-normal': { 'overflow-wrap': 'normal', 'word-break': 'normal' },
|
||||
|
|
|
|||
|
|
@ -593,6 +593,15 @@
|
|||
.whitespace-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text-wrap {
|
||||
text-wrap: wrap;
|
||||
}
|
||||
.text-nowrap {
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
.text-balance {
|
||||
text-wrap: balance;
|
||||
}
|
||||
.break-words {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -597,6 +597,15 @@
|
|||
.whitespace-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text-wrap {
|
||||
text-wrap: wrap;
|
||||
}
|
||||
.text-nowrap {
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
.text-balance {
|
||||
text-wrap: balance;
|
||||
}
|
||||
.break-words {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ crosscheck(({ stable, oxide, engine }) => {
|
|||
<div class="invisible"></div>
|
||||
<div class="collapse"></div>
|
||||
<div class="whitespace-nowrap"></div>
|
||||
<div class="text-wrap text-balance text-nowrap"></div>
|
||||
<div class="w-12"></div>
|
||||
<div class="break-words"></div>
|
||||
<div class="z-30"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue