Skip to content

Commit b0cc958

Browse files
fix: 🐛 修复NumberKeyboard暗黑模式无效的问题
1 parent b70991a commit b0cc958

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

src/uni_modules/wot-design-uni/components/wd-number-keyboard/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
.wot-theme-dark {
55
@include b(number-keyboard) {
6+
background: $-dark-background5;
7+
8+
@include e(header){
9+
color: $-dark-color;
10+
}
611
}
712
}
813

src/uni_modules/wot-design-uni/components/wd-number-keyboard/key/index.scss

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
@import "./../../common/abstracts/variable.scss";
33

44
.wot-theme-dark {
5-
@include b(key) {}
5+
@include b(key) {
6+
background: $-dark-background2;
7+
color: $-dark-color;
8+
9+
&:active {
10+
background-color: $-dark-background4;
11+
}
12+
13+
@include m(active) {
14+
background-color: $-dark-background4;
15+
}
16+
17+
}
618
}
719

820
.wd-key-wrapper {
@@ -12,7 +24,7 @@
1224
box-sizing: border-box;
1325
padding: 0 6px 6px 0;
1426

15-
@include m(wider){
27+
@include m(wider) {
1628
flex-basis: 66%;
1729
}
1830
}
@@ -26,7 +38,8 @@
2638
line-height: 1.5;
2739
background: $-number-keyboard-key-background;
2840
border-radius: $-number-keyboard-key-border-radius;
29-
&:active{
41+
42+
&:active {
3043
background-color: $-number-keyboard-key-active-color;
3144
}
3245

@@ -39,7 +52,7 @@
3952
height: auto;
4053
}
4154

42-
@include m(delete,close) {
55+
@include m(delete, close) {
4356
font-size: $-number-keyboard-delete-font-size;
4457
}
4558

@@ -51,7 +64,7 @@
5164
color: $-number-keyboard-button-text-color;
5265
background: $-number-keyboard-button-background;
5366

54-
&:active{
67+
&:active {
5568
background: $-number-keyboard-button-background;
5669
opacity: $-number-keyboard-button-active-opacity;
5770
}

0 commit comments

Comments
 (0)