Skip to content

Commit

Permalink
fix(material/slide-toggle): add cursor pointer for label (angular#27391)
Browse files Browse the repository at this point in the history
our label in slider doesn't contain cursor pointer style as we can still click on label and toggle slider

fixes angular#26490
  • Loading branch information
naaajii authored and Anthony Frénéat committed Jul 31, 2023
1 parent 5eebc38 commit 3b03615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material/slide-toggle/slide-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,9 @@
transition: none;
}
}

// If our slide-toggle is enabled the cursor on label should appear as a pointer.
.mdc-switch:enabled + .mdc-label {
cursor: pointer;
}
}

0 comments on commit 3b03615

Please sign in to comment.