Skip to content

Commit

Permalink
Reduce opacity of disabled checkbox control indicator (#6962)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdouglas authored Sep 5, 2024
1 parent 09c42c3 commit b3f5a3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/components/forms/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ $control-indicator-spacing: $pt-grid-size !default;
@include indicator-inline-icon("small-minus");
}

input:disabled ~ .#{$ns}-control-indicator::before {
opacity: 0.5;
}

@media (forced-colors: active) and (prefers-color-scheme: dark) {
input:checked:not(:disabled) ~ .#{$ns}-control-indicator {
@include indicator-inline-icon("small-tick", $black);
Expand Down

1 comment on commit b3f5a3d

@svc-palantir-github
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduce opacity of disabled checkbox control indicator (#6962)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.