Skip to content

Commit a28938c

Browse files
author
xuqingkai
committed
fix: 🐛 修复暗黑模式下Grid和ActionSheet组件部分样式异常的问题
Closes: #409
1 parent 04fd2df commit a28938c

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/uni_modules/wot-design-uni/components/wd-action-sheet/index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
color: $-dark-color;
1111
background: $-dark-background2;
1212

13-
&:active {
13+
&:not(&--disabled):not(&--loading):active {
1414
background: $-dark-background4;
1515
}
16+
17+
@include m(disabled) {
18+
color: $-dark-color-gray;
19+
}
1620
}
1721

1822
@include e(subname) {

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
@import '../common/abstracts/variable';
22
@import '../common/abstracts/mixin';
3-
.wot-theme-dark {
4-
@include b(grid) {
5-
background-color: $-dark-background2;
6-
}
7-
}
83

94
@include b(grid) {
105
position: relative;

src/uni_modules/wot-design-uni/components/wd-sidebar-item/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
color: $-dark-color-gray;
2020

2121
&:active {
22-
background-color: $-dark-background2;;
22+
background-color: $-dark-background2;
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)