Skip to content

Commit 479206d

Browse files
committed
fix(Switch): add focus state, close #177
1 parent 17a621b commit 479206d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/switch/main.scss

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
color: $switch-normal-on-color-font;
3939
}
4040

41+
&:focus,
4142
&:hover {
4243
background-color: $switch-hover-on-bg-color;
4344
&:after {
@@ -70,6 +71,7 @@
7071
background-color: $switch-normal-off-bg-color;
7172
border-color: $switch-normal-off-border-color;
7273

74+
&:focus,
7375
&:hover {
7476
background-color: $switch-hover-off-bg-color;
7577
border-color: $switch-hover-off-border-color;
@@ -81,6 +83,7 @@
8183
box-shadow: $switch-on-shadow;
8284
background-color: $switch-normal-off-trigger-bg-color;
8385
border-color: $switch-handle-off-border-color;
86+
&:focus,
8487
&:hover {
8588
background-color: $switch-hover-off-trigger-bg-color;
8689
}

0 commit comments

Comments
 (0)