Skip to content

Commit 12c4c7d

Browse files
authored
Merge pull request #1352 from tailwindcss/transition-shadow
Add `transition-shadow`, transition box-shadow in `transition` also
2 parents 59721a6 + e0771bd commit 12c4c7d

File tree

3 files changed

+52
-11
lines changed

3 files changed

+52
-11
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10327,7 +10327,7 @@ video {
1032710327
}
1032810328

1032910329
.transition {
10330-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
10330+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
1033110331
}
1033210332

1033310333
.transition-colors {
@@ -10338,6 +10338,10 @@ video {
1033810338
transition-property: opacity !important;
1033910339
}
1034010340

10341+
.transition-shadow {
10342+
transition-property: box-shadow !important;
10343+
}
10344+
1034110345
.transition-transform {
1034210346
transition-property: transform !important;
1034310347
}
@@ -20118,7 +20122,7 @@ video {
2011820122
}
2011920123

2012020124
.sm\:transition {
20121-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
20125+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
2012220126
}
2012320127

2012420128
.sm\:transition-colors {
@@ -20129,6 +20133,10 @@ video {
2012920133
transition-property: opacity !important;
2013020134
}
2013120135

20136+
.sm\:transition-shadow {
20137+
transition-property: box-shadow !important;
20138+
}
20139+
2013220140
.sm\:transition-transform {
2013320141
transition-property: transform !important;
2013420142
}
@@ -29910,7 +29918,7 @@ video {
2991029918
}
2991129919

2991229920
.md\:transition {
29913-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
29921+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
2991429922
}
2991529923

2991629924
.md\:transition-colors {
@@ -29921,6 +29929,10 @@ video {
2992129929
transition-property: opacity !important;
2992229930
}
2992329931

29932+
.md\:transition-shadow {
29933+
transition-property: box-shadow !important;
29934+
}
29935+
2992429936
.md\:transition-transform {
2992529937
transition-property: transform !important;
2992629938
}
@@ -39702,7 +39714,7 @@ video {
3970239714
}
3970339715

3970439716
.lg\:transition {
39705-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
39717+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
3970639718
}
3970739719

3970839720
.lg\:transition-colors {
@@ -39713,6 +39725,10 @@ video {
3971339725
transition-property: opacity !important;
3971439726
}
3971539727

39728+
.lg\:transition-shadow {
39729+
transition-property: box-shadow !important;
39730+
}
39731+
3971639732
.lg\:transition-transform {
3971739733
transition-property: transform !important;
3971839734
}
@@ -49494,7 +49510,7 @@ video {
4949449510
}
4949549511

4949649512
.xl\:transition {
49497-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
49513+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
4949849514
}
4949949515

4950049516
.xl\:transition-colors {
@@ -49505,6 +49521,10 @@ video {
4950549521
transition-property: opacity !important;
4950649522
}
4950749523

49524+
.xl\:transition-shadow {
49525+
transition-property: box-shadow !important;
49526+
}
49527+
4950849528
.xl\:transition-transform {
4950949529
transition-property: transform !important;
4951049530
}

__tests__/fixtures/tailwind-output.css

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10327,7 +10327,7 @@ video {
1032710327
}
1032810328

1032910329
.transition {
10330-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
10330+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
1033110331
}
1033210332

1033310333
.transition-colors {
@@ -10338,6 +10338,10 @@ video {
1033810338
transition-property: opacity;
1033910339
}
1034010340

10341+
.transition-shadow {
10342+
transition-property: box-shadow;
10343+
}
10344+
1034110345
.transition-transform {
1034210346
transition-property: transform;
1034310347
}
@@ -20118,7 +20122,7 @@ video {
2011820122
}
2011920123

2012020124
.sm\:transition {
20121-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
20125+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
2012220126
}
2012320127

2012420128
.sm\:transition-colors {
@@ -20129,6 +20133,10 @@ video {
2012920133
transition-property: opacity;
2013020134
}
2013120135

20136+
.sm\:transition-shadow {
20137+
transition-property: box-shadow;
20138+
}
20139+
2013220140
.sm\:transition-transform {
2013320141
transition-property: transform;
2013420142
}
@@ -29910,7 +29918,7 @@ video {
2991029918
}
2991129919

2991229920
.md\:transition {
29913-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
29921+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
2991429922
}
2991529923

2991629924
.md\:transition-colors {
@@ -29921,6 +29929,10 @@ video {
2992129929
transition-property: opacity;
2992229930
}
2992329931

29932+
.md\:transition-shadow {
29933+
transition-property: box-shadow;
29934+
}
29935+
2992429936
.md\:transition-transform {
2992529937
transition-property: transform;
2992629938
}
@@ -39702,7 +39714,7 @@ video {
3970239714
}
3970339715

3970439716
.lg\:transition {
39705-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
39717+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
3970639718
}
3970739719

3970839720
.lg\:transition-colors {
@@ -39713,6 +39725,10 @@ video {
3971339725
transition-property: opacity;
3971439726
}
3971539727

39728+
.lg\:transition-shadow {
39729+
transition-property: box-shadow;
39730+
}
39731+
3971639732
.lg\:transition-transform {
3971739733
transition-property: transform;
3971839734
}
@@ -49494,7 +49510,7 @@ video {
4949449510
}
4949549511

4949649512
.xl\:transition {
49497-
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
49513+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
4949849514
}
4949949515

4950049516
.xl\:transition-colors {
@@ -49505,6 +49521,10 @@ video {
4950549521
transition-property: opacity;
4950649522
}
4950749523

49524+
.xl\:transition-shadow {
49525+
transition-property: box-shadow;
49526+
}
49527+
4950849528
.xl\:transition-transform {
4950949529
transition-property: transform;
4951049530
}

stubs/defaultConfig.stub.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,10 @@ module.exports = {
528528
transitionProperty: {
529529
none: 'none',
530530
all: 'all',
531-
default: 'background-color, border-color, color, fill, stroke, opacity,transform',
531+
default: 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
532532
colors: 'background-color, border-color, color, fill, stroke',
533533
opacity: 'opacity',
534+
shadow: 'box-shadow',
534535
transform: 'transform',
535536
},
536537
transitionTimingFunction: {

0 commit comments

Comments
 (0)