Skip to content

Commit ef2e6c7

Browse files
Upgrade: Migrate outline class (#17996)
This PR adds a migration from `outline` to `outline-solid` for the v3 -> v4 upgrade tool. ## Test plan - Added integration test
1 parent 4fba87b commit ef2e6c7

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

integrations/upgrade/index.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ test(
8181
8282
<!-- Migrate to -3 -->
8383
<div class="ring"></div>
84+
85+
<!-- Migrate to -solid -->
86+
<div class="outline"></div>
8487
`,
8588
'src/input.css': css`
8689
@tailwind base;
@@ -117,6 +120,9 @@ test(
117120
<!-- Migrate to -3 -->
118121
<div class="ring-3"></div>
119122
123+
<!-- Migrate to -solid -->
124+
<div class="outline-solid"></div>
125+
120126
--- ./src/input.css ---
121127
@import 'tailwindcss';
122128

packages/@tailwindcss-upgrade/src/codemods/template/migrate-legacy-classes.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ test.each([
2727

2828
['ring', 'ring-3'],
2929

30+
['outline', 'outline-solid'],
31+
3032
['blur!', 'blur-sm!'],
3133
['hover:blur', 'hover:blur-sm'],
3234
['hover:blur!', 'hover:blur-sm!'],

packages/@tailwindcss-upgrade/src/codemods/template/migrate-legacy-classes.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const LEGACY_CLASS_MAP = new Map([
3333
['backdrop-blur-sm', 'backdrop-blur-xs'],
3434

3535
['ring', 'ring-3'],
36+
37+
['outline', 'outline-solid'],
3638
])
3739

3840
const THEME_KEYS = new Map([

0 commit comments

Comments
 (0)