From f2ebeabc6465ef819b36db96e9899d621c9a42b2 Mon Sep 17 00:00:00 2001 From: Naaajii Date: Fri, 30 Jun 2023 17:33:53 +0500 Subject: [PATCH] fix(material/slide-toggle): add cursor pointer for label our label in slider doesn't contain cursor pointer style as we can still click on label and toggle slider fixes #26490 --- src/material/slide-toggle/slide-toggle.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/material/slide-toggle/slide-toggle.scss b/src/material/slide-toggle/slide-toggle.scss index 9a65dd5bcf4c..7ff21a7a9845 100644 --- a/src/material/slide-toggle/slide-toggle.scss +++ b/src/material/slide-toggle/slide-toggle.scss @@ -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; + } }