Skip to content

Commit

Permalink
refactor(checkbox): move cursor styles to host
Browse files Browse the repository at this point in the history
related: #5066 #5069
PiperOrigin-RevId: 574300108
  • Loading branch information
Elliott Marquez authored and copybara-github committed Oct 17, 2023
1 parent 65e5e83 commit 08d1061
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions checkbox/internal/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ $_checkmark-bottom-left: 7px, -14px;
vertical-align: top; // Fix extra space when placed inside display: block
width: var(--_container-size);
-webkit-tap-highlight-color: transparent;
cursor: pointer;
}

:host([disabled]) {
cursor: default;
}

:host([touch-target='wrapper']) {
Expand All @@ -104,7 +109,7 @@ $_checkmark-bottom-left: 7px, -14px;
position: absolute;
width: 48px;
z-index: 1;
cursor: pointer;
cursor: inherit;
}

:host([touch-target='none']) input {
Expand Down Expand Up @@ -374,10 +379,6 @@ $_checkmark-bottom-left: 7px, -14px;
opacity: var(--_disabled-container-opacity);
}

.disabled input {
cursor: default;
}

:where(.selected.disabled) .outline {
// Hide the outline behind the transparent selected container color.
// This can be removed once disabled colors are flattened.
Expand Down

0 comments on commit 08d1061

Please sign in to comment.