Skip to content

Commit e2d229b

Browse files
committed
Fix nesting opacity of disabled nodes
1 parent 4bf4ec2 commit e2d229b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/less/react-checkbox-tree.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
}
4848

4949
.rct-disabled {
50-
opacity: .75;
51-
52-
label {
50+
> .rct-text > label {
51+
opacity: .75;
5352
cursor: not-allowed;
5453

5554
&:hover {

src/scss/react-checkbox-tree.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ $rct-label-hover: rgba($rct-icon-color, .1) !default;
4747
}
4848

4949
.rct-disabled {
50-
opacity: .75;
51-
52-
label {
50+
> .rct-text > label {
51+
opacity: .75;
5352
cursor: not-allowed;
5453

5554
&:hover {

0 commit comments

Comments
 (0)