Skip to content

Commit 43cb5ef

Browse files
committed
fix(preset-wind4): inherit color key
close #4708
1 parent 0d396af commit 43cb5ef

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

packages-presets/preset-wind4/src/utils/constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export const CONTROL_NO_NEGATIVE = '$$mini-no-negative'
33
export const SpecialColorKey = {
44
transparent: 'transparent',
55
current: 'currentColor',
6+
inherit: 'inherit',
67
}

test/assets/output/preset-wind4-targets.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,7 @@ unocss .scope-\[unocss\]\:block{display:block;}
14861486
.line-clamp-100{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:100;}
14871487
.line-clamp-7{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;}
14881488
.line-clamp-none{overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:unset;}
1489+
.placeholder-inherit::placeholder{color:inherit;}
14891490
.placeholder-red-400::placeholder{color:color-mix(in oklch, var(--colors-red-400) var(--un-placeholder-opacity), transparent) /* oklch(70.4% 0.191 22.216) */;}
14901491
.placeholder-opacity-60::placeholder{--un-placeholder-opacity:60%;}
14911492
.snap-both{scroll-snap-type:both var(--un-scroll-snap-strictness);}

test/preset-wind4.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ describe('preset-wind4', () => {
102102
"border-spacing-none",
103103
"divide-inline-$variable",
104104
"uno-layer-_pre:contrast-less:bg-gray-3",
105-
"placeholder-inherit",
106105
"-space-x-4",
107106
"data-dropdown:ring-green",
108107
]

0 commit comments

Comments
 (0)