Skip to content

Commit

Permalink
fix(checkbox): cursor should be pointer when not disabled
Browse files Browse the repository at this point in the history
fixes #5079

PiperOrigin-RevId: 574295359
  • Loading branch information
Elliott Marquez authored and copybara-github committed Oct 17, 2023
1 parent 863109e commit 18fe451
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions checkbox/internal/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ $_checkmark-bottom-left: 7px, -14px;
position: absolute;
width: 48px;
z-index: 1;
cursor: pointer;
}

:host([touch-target='none']) input {
Expand Down Expand Up @@ -373,6 +374,10 @@ $_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 18fe451

Please sign in to comment.