Skip to content

Commit

Permalink
fix(switch): cursor should be pointer except when disabled
Browse files Browse the repository at this point in the history
fixes #5075

PiperOrigin-RevId: 574285854
  • Loading branch information
Elliott Marquez authored and copybara-github committed Oct 18, 2023
1 parent 7779987 commit 9c67b0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions switch/internal/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
outline: none;
vertical-align: top;
-webkit-tap-highlight-color: transparent;
cursor: pointer;
}

:host([disabled]) {
cursor: default;
}

:host([touch-target='wrapper']) {
Expand Down Expand Up @@ -130,6 +135,7 @@
position: absolute;
width: 100%;
z-index: 1;
cursor: inherit;
}

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

0 comments on commit 9c67b0b

Please sign in to comment.