From 9c67b0bae8955f10680baade3cf8274c3024fe69 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Tue, 17 Oct 2023 15:40:44 -0700 Subject: [PATCH] fix(switch): cursor should be pointer except when disabled fixes #5075 PiperOrigin-RevId: 574285854 --- switch/internal/_switch.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/switch/internal/_switch.scss b/switch/internal/_switch.scss index bdf00c6a5bf..5acb5ca998d 100644 --- a/switch/internal/_switch.scss +++ b/switch/internal/_switch.scss @@ -89,6 +89,11 @@ outline: none; vertical-align: top; -webkit-tap-highlight-color: transparent; + cursor: pointer; + } + + :host([disabled]) { + cursor: default; } :host([touch-target='wrapper']) { @@ -130,6 +135,7 @@ position: absolute; width: 100%; z-index: 1; + cursor: inherit; } :host([touch-target='none']) input {