Skip to content

Commit 8dee389

Browse files
committed
fix: ad1b77d 将Radio改为完全受控后,原来的input[type=radio]:checked的css不再生效,造成radio点击后无法显示被点击的状态。
1 parent a996fc4 commit 8dee389

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/themes/aquadx/components.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ body:has(.root) {
4444
input[type=radio] {
4545
border-color: #b3c6ff;
4646

47-
&:checked {
47+
&[checked] {
4848
background-color: #b3c6ff;
4949
border-color: #b3c6ff;
5050
}

src/themes/dynamicLight/components.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ body:has(.root) {
4848
input[type=radio] {
4949
border-color: oklch(0.68 0.17 var(--hue));
5050

51-
&:checked {
51+
&[checked] {
5252
background-color: oklch(0.68 0.17 var(--hue));
5353
border-color: oklch(0.68 0.17 var(--hue));
5454
}

0 commit comments

Comments
 (0)