Merge 655308c891 into fa81d697fe
This commit is contained in:
commit
6a93bd86f8
3 changed files with 9 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
|
||||
- Add `@tailwindcss/turbopack` package to run Tailwind CSS with Next.js ([20367](https://github.com/tailwindlabs/tailwindcss/pull/20367))
|
||||
- Add `text-stable` utility for CSS `text-wrap: stable` to stabilize editable content line wrapping ([#20519](https://github.com/tailwindlabs/tailwindcss/pull/20519))
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
|||
|
|
@ -11994,7 +11994,7 @@ test('tab', async () => {
|
|||
})
|
||||
|
||||
test('text-wrap', async () => {
|
||||
expect(await run(['text-wrap', 'text-nowrap', 'text-balance', 'text-pretty']))
|
||||
expect(await run(['text-wrap', 'text-nowrap', 'text-balance', 'text-pretty', 'text-stable']))
|
||||
.toMatchInlineSnapshot(`
|
||||
"
|
||||
.text-balance {
|
||||
|
|
@ -12009,6 +12009,10 @@ test('text-wrap', async () => {
|
|||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
.text-stable {
|
||||
text-wrap: stable;
|
||||
}
|
||||
|
||||
.text-wrap {
|
||||
text-wrap: wrap;
|
||||
}
|
||||
|
|
@ -12020,10 +12024,12 @@ test('text-wrap', async () => {
|
|||
'-text-nowrap',
|
||||
'-text-balance',
|
||||
'-text-pretty',
|
||||
'-text-stable',
|
||||
'text-wrap/foo',
|
||||
'text-nowrap/foo',
|
||||
'text-balance/foo',
|
||||
'text-pretty/foo',
|
||||
'text-stable/foo',
|
||||
]),
|
||||
).toEqual('')
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2359,6 +2359,7 @@ export function createUtilities(theme: Theme) {
|
|||
staticUtility('text-nowrap', [['text-wrap', 'nowrap']])
|
||||
staticUtility('text-balance', [['text-wrap', 'balance']])
|
||||
staticUtility('text-pretty', [['text-wrap', 'pretty']])
|
||||
staticUtility('text-stable', [['text-wrap', 'stable']])
|
||||
staticUtility('break-normal', [
|
||||
['overflow-wrap', 'normal'],
|
||||
['word-break', 'normal'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue