Skip to content

Commit

Permalink
fix(material/slide-toggle): add cursor pointer for label
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
  • Loading branch information
naaajii committed Jul 2, 2023
1 parent 7ad7de6 commit f2ebeab
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 f2ebeab

Please sign in to comment.