Skip to content

Commit 71eee19

Browse files
committed
Make clickable label have a pointer cursor and decrease intensity of active node
1 parent aa68b3f commit 71eee19

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/scss/react-checkbox-tree.scss

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $rct-icon-color: #33c !default;
22
$rct-label-hover: rgba($rct-icon-color, .1) !default;
33
$rct-label-active: rgba($rct-icon-color, .15) !default;
44
$rct-clickable-hover: rgba($rct-icon-color, .1) !default;
5-
$rct-clickable-focus: rgba($rct-icon-color, .5) !default;
5+
$rct-clickable-focus: rgba($rct-icon-color, .2) !default;
66

77
.react-checkbox-tree {
88
font-size: 16px;
@@ -93,17 +93,6 @@ $rct-clickable-focus: rgba($rct-icon-color, .5) !default;
9393
}
9494
}
9595

96-
.rct-node-clickable {
97-
&:hover {
98-
background: $rct-clickable-hover;
99-
}
100-
101-
&:focus {
102-
outline: 0;
103-
background: $rct-clickable-focus;
104-
}
105-
}
106-
10796
.rct-collapse {
10897
border: 0;
10998
background: none;
@@ -130,6 +119,19 @@ $rct-clickable-focus: rgba($rct-icon-color, .5) !default;
130119
}
131120
}
132121

122+
.rct-node-clickable {
123+
cursor: pointer;
124+
125+
&:hover {
126+
background: $rct-clickable-hover;
127+
}
128+
129+
&:focus {
130+
outline: 0;
131+
background: $rct-clickable-focus;
132+
}
133+
}
134+
133135
.rct-node-icon {
134136
color: $rct-icon-color;
135137
}

0 commit comments

Comments
 (0)