Skip to content

Commit

Permalink
fix(material/slide-toggle): add cursor pointer for label (#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 #26490

(cherry picked from commit 6bbf2ea)
  • Loading branch information
naaajii authored and crisbeto committed Jul 17, 2023
1 parent 465a7b0 commit 0be32cf
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 @@ -89,4 +89,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 0be32cf

Please sign in to comment.