mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Migrate flex-grow -> grow and flex-shrink -> shrink (#14721)
This PR adds missing legacy migrations for migrating `flex-grow` to `grow` and `flex-shrink` to `shrink`. We already migrated `flex-grow-0` to `grow-0` and `flex-shrink-0` to `shrink-0`, but forgot about these cases.
This commit is contained in:
parent
b7c4d25ae4
commit
c4b97f6067
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
|
||||
- Allow spaces spaces around operators in attribute selector variants ([#14703](https://github.com/tailwindlabs/tailwindcss/pull/14703))
|
||||
- _Upgrade (experimental)_: Migrate `flex-grow` to `grow` and `flex-shrink` to `shrink` ([#14721](https://github.com/tailwindlabs/tailwindcss/pull/14721))
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@ -5,7 +5,9 @@ import { simpleLegacyClasses } from './simple-legacy-classes'
|
||||
test.each([
|
||||
['overflow-clip', 'text-clip'],
|
||||
['overflow-ellipsis', 'text-ellipsis'],
|
||||
['flex-grow', 'grow'],
|
||||
['flex-grow-0', 'grow-0'],
|
||||
['flex-shrink', 'shrink'],
|
||||
['flex-shrink-0', 'shrink-0'],
|
||||
['decoration-clone', 'box-decoration-clone'],
|
||||
['decoration-slice', 'box-decoration-slice'],
|
||||
|
||||
@ -7,7 +7,9 @@ import { printCandidate } from '../candidates'
|
||||
const LEGACY_CLASS_MAP = {
|
||||
'overflow-clip': 'text-clip',
|
||||
'overflow-ellipsis': 'text-ellipsis',
|
||||
'flex-grow': 'grow',
|
||||
'flex-grow-0': 'grow-0',
|
||||
'flex-shrink': 'shrink',
|
||||
'flex-shrink-0': 'shrink-0',
|
||||
'decoration-clone': 'box-decoration-clone',
|
||||
'decoration-slice': 'box-decoration-slice',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user