Skip to content

Commit 5366d24

Browse files
yuheiyreinink
andauthored
Add support for text-wrap: pretty (#12031)
* Add support for `text-wrap: pretty` * Update changelog --------- Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 42e75ba commit 5366d24

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- Process and inline `@import` at-rules natively ([#11239](https://github.com/tailwindlabs/tailwindcss/pull/11239))
2727
- Add `svh`, `lvh`, and `dvh` values to default `height`/`min-height`/`max-height` theme ([#11317](https://github.com/tailwindlabs/tailwindcss/pull/11317))
2828
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
29-
- Add `text-wrap` utilities including `text-balance` ([#11320](https://github.com/tailwindlabs/tailwindcss/pull/11320))
29+
- Add `text-wrap` utilities including `text-balance` and `text-pretty` ([#11320](https://github.com/tailwindlabs/tailwindcss/pull/11320), [#12031](https://github.com/tailwindlabs/tailwindcss/pull/12031))
3030
- Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist ([#11402](https://github.com/tailwindlabs/tailwindcss/pull/11402), [#11412](https://github.com/tailwindlabs/tailwindcss/pull/11412))
3131
- Extend default `opacity` scale to include all steps of 5 ([#11832](https://github.com/tailwindlabs/tailwindcss/pull/11832))
3232
- Update Preflight `html` styles to include shadow DOM `:host` pseudo-class ([#11200](https://github.com/tailwindlabs/tailwindcss/pull/11200))

src/corePlugins.js

+1
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,7 @@ export let corePlugins = {
15281528
'.text-wrap': { 'text-wrap': 'wrap' },
15291529
'.text-nowrap': { 'text-wrap': 'nowrap' },
15301530
'.text-balance': { 'text-wrap': 'balance' },
1531+
'.text-pretty': { 'text-wrap': 'pretty' },
15311532
})
15321533
},
15331534

tests/plugins/textWrap.test.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ quickPluginTest('textWrap').toMatchFormattedCss(css`
1010
.text-balance {
1111
text-wrap: balance;
1212
}
13+
.text-pretty {
14+
text-wrap: pretty;
15+
}
1316
`)

0 commit comments

Comments
 (0)