Skip to content

Commit 9a3ff28

Browse files
Elliott Marquezcopybara-github
authored andcommitted
fix(switch): cursor should be pointer except when disabled
fixes #5075 PiperOrigin-RevId: 574526749
1 parent 5280c6e commit 9a3ff28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

switch/internal/_switch.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
outline: none;
9090
vertical-align: top;
9191
-webkit-tap-highlight-color: transparent;
92+
cursor: pointer;
93+
}
94+
95+
:host([disabled]) {
96+
cursor: default;
9297
}
9398

9499
:host([touch-target='wrapper']) {
@@ -130,6 +135,7 @@
130135
position: absolute;
131136
width: 100%;
132137
z-index: 1;
138+
cursor: inherit;
133139
}
134140

135141
:host([touch-target='none']) input {

0 commit comments

Comments
 (0)