Skip to content

Commit

Permalink
Add transition-shadow, transition box-shadow in transition also
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Feb 1, 2020
1 parent bb1e629 commit e0771bd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 11 deletions.
30 changes: 25 additions & 5 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -10327,7 +10327,7 @@ video {
}

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

.transition-colors {
Expand All @@ -10338,6 +10338,10 @@ video {
transition-property: opacity !important;
}

.transition-shadow {
transition-property: box-shadow !important;
}

.transition-transform {
transition-property: transform !important;
}
Expand Down Expand Up @@ -20118,7 +20122,7 @@ video {
}

.sm\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
}

.sm\:transition-colors {
Expand All @@ -20129,6 +20133,10 @@ video {
transition-property: opacity !important;
}

.sm\:transition-shadow {
transition-property: box-shadow !important;
}

.sm\:transition-transform {
transition-property: transform !important;
}
Expand Down Expand Up @@ -29910,7 +29918,7 @@ video {
}

.md\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
}

.md\:transition-colors {
Expand All @@ -29921,6 +29929,10 @@ video {
transition-property: opacity !important;
}

.md\:transition-shadow {
transition-property: box-shadow !important;
}

.md\:transition-transform {
transition-property: transform !important;
}
Expand Down Expand Up @@ -39702,7 +39714,7 @@ video {
}

.lg\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
}

.lg\:transition-colors {
Expand All @@ -39713,6 +39725,10 @@ video {
transition-property: opacity !important;
}

.lg\:transition-shadow {
transition-property: box-shadow !important;
}

.lg\:transition-transform {
transition-property: transform !important;
}
Expand Down Expand Up @@ -49494,7 +49510,7 @@ video {
}

.xl\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform !important;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
}

.xl\:transition-colors {
Expand All @@ -49505,6 +49521,10 @@ video {
transition-property: opacity !important;
}

.xl\:transition-shadow {
transition-property: box-shadow !important;
}

.xl\:transition-transform {
transition-property: transform !important;
}
Expand Down
30 changes: 25 additions & 5 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -10327,7 +10327,7 @@ video {
}

.transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.transition-colors {
Expand All @@ -10338,6 +10338,10 @@ video {
transition-property: opacity;
}

.transition-shadow {
transition-property: box-shadow;
}

.transition-transform {
transition-property: transform;
}
Expand Down Expand Up @@ -20118,7 +20122,7 @@ video {
}

.sm\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.sm\:transition-colors {
Expand All @@ -20129,6 +20133,10 @@ video {
transition-property: opacity;
}

.sm\:transition-shadow {
transition-property: box-shadow;
}

.sm\:transition-transform {
transition-property: transform;
}
Expand Down Expand Up @@ -29910,7 +29918,7 @@ video {
}

.md\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.md\:transition-colors {
Expand All @@ -29921,6 +29929,10 @@ video {
transition-property: opacity;
}

.md\:transition-shadow {
transition-property: box-shadow;
}

.md\:transition-transform {
transition-property: transform;
}
Expand Down Expand Up @@ -39702,7 +39714,7 @@ video {
}

.lg\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.lg\:transition-colors {
Expand All @@ -39713,6 +39725,10 @@ video {
transition-property: opacity;
}

.lg\:transition-shadow {
transition-property: box-shadow;
}

.lg\:transition-transform {
transition-property: transform;
}
Expand Down Expand Up @@ -49494,7 +49510,7 @@ video {
}

.xl\:transition {
transition-property: background-color, border-color, color, fill, stroke, opacity,transform;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.xl\:transition-colors {
Expand All @@ -49505,6 +49521,10 @@ video {
transition-property: opacity;
}

.xl\:transition-shadow {
transition-property: box-shadow;
}

.xl\:transition-transform {
transition-property: transform;
}
Expand Down
3 changes: 2 additions & 1 deletion stubs/defaultConfig.stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,10 @@ module.exports = {
transitionProperty: {
none: 'none',
all: 'all',
default: 'background-color, border-color, color, fill, stroke, opacity,transform',
default: 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
colors: 'background-color, border-color, color, fill, stroke',
opacity: 'opacity',
shadow: 'box-shadow',
transform: 'transform',
},
transitionTimingFunction: {
Expand Down

0 comments on commit e0771bd

Please sign in to comment.