Skip to content

Commit 42e6327

Browse files
authored
fix(preset-wind4): optimize hidden unitility for reset style (#4949)
1 parent d88b8f8 commit 42e6327

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages-presets/preset-wind4/src/preflights/reset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
399399
Make elements with the HTML hidden attribute stay hidden by default.
400400
*/
401401
402-
[hidden]:where(:not([hidden='until-found'])) {
402+
[hidden]:where(:not([hidden~='until-found'])) {
403403
display: none !important;
404404
}
405405
`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
396396
Make elements with the HTML hidden attribute stay hidden by default.
397397
*/
398398

399-
[hidden]:where(:not([hidden='until-found'])) {
399+
[hidden]:where(:not([hidden~='until-found'])) {
400400
display: none !important;
401401
}

0 commit comments

Comments
 (0)