Skip to content

Commit 4e49902

Browse files
committed
Include outline-color in default color properties to transition (v4 edition)
1 parent aac8c5a commit 4e49902

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

packages/tailwindcss/src/compat/default-theme.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,9 @@ export default {
10191019
none: 'none',
10201020
all: 'all',
10211021
DEFAULT:
1022-
'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
1023-
colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
1022+
'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
1023+
colors:
1024+
'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke',
10241025
opacity: 'opacity',
10251026
shadow: 'box-shadow',
10261027
transform: 'transform',

packages/tailwindcss/src/utilities.test.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14323,8 +14323,9 @@ test('transition', async () => {
1432314323
@theme {
1432414324
--default-transition-timing-function: ease;
1432514325
--default-transition-duration: 100ms;
14326-
--transition-property: color, background-color, border-color, text-decoration-color, fill,
14327-
stroke, opacity, box-shadow, transform, filter, backdrop-filter;
14326+
--transition-property: color, background-color, outline-color, border-color,
14327+
text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
14328+
backdrop-filter;
1432814329
--transition-property-opacity: opacity;
1432914330
}
1433014331
@tailwind utilities;
@@ -14344,12 +14345,12 @@ test('transition', async () => {
1434414345
":root {
1434514346
--default-transition-timing-function: ease;
1434614347
--default-transition-duration: .1s;
14347-
--transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
14348+
--transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1434814349
--transition-property-opacity: opacity;
1434914350
}
1435014351
1435114352
.transition {
14352-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
14353+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
1435314354
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1435414355
transition-duration: var(--tw-duration, var(--default-transition-duration));
1435514356
}
@@ -14367,7 +14368,7 @@ test('transition', async () => {
1436714368
}
1436814369
1436914370
.transition-colors {
14370-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
14371+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
1437114372
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1437214373
transition-duration: var(--tw-duration, var(--default-transition-duration));
1437314374
}
@@ -14416,7 +14417,7 @@ test('transition', async () => {
1441614417
}
1441714418
1441814419
.transition {
14419-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
14420+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
1442014421
transition-timing-function: var(--tw-ease, ease);
1442114422
transition-duration: var(--tw-duration, .1s);
1442214423
}
@@ -14428,7 +14429,7 @@ test('transition', async () => {
1442814429
}
1442914430
1443014431
.transition-colors {
14431-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
14432+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
1443214433
transition-timing-function: var(--tw-ease, ease);
1443314434
transition-duration: var(--tw-duration, .1s);
1443414435
}"

packages/tailwindcss/src/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,7 +3552,7 @@ export function createUtilities(theme: Theme) {
35523552
staticUtility('transition-colors', [
35533553
[
35543554
'transition-property',
3555-
'color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to',
3555+
'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to',
35563556
],
35573557
['transition-timing-function', defaultTimingFunction],
35583558
['transition-duration', defaultDuration],
@@ -3575,7 +3575,7 @@ export function createUtilities(theme: Theme) {
35753575

35763576
functionalUtility('transition', {
35773577
defaultValue:
3578-
'color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter',
3578+
'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter',
35793579
themeKeys: ['--transition-property'],
35803580
handle: (value) => [
35813581
decl('transition-property', value),

0 commit comments

Comments
 (0)