diff --git a/CHANGELOG.md b/CHANGELOG.md index 63b4dc2dad6d..5ad3fa3e23f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.test.ts b/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.test.ts index d0a89da58b32..264d7f0ace9f 100644 --- a/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.test.ts +++ b/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.test.ts @@ -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'], diff --git a/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.ts b/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.ts index 94a4121f8f76..6d20b8cc87e7 100644 --- a/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.ts +++ b/packages/@tailwindcss-upgrade/src/template/codemods/simple-legacy-classes.ts @@ -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',