Skip to content

Commit

Permalink
fix indeterminate check styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmmcken committed Dec 21, 2023
1 parent fa4e040 commit fd3fe24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/components/scss/BaseStyleSheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ form label small {
.custom-radio {
.custom-control-input:checked ~ .custom-control-label {
&::after {
mask: escape-svg($custom-radio-indicator-icon-checked) 50%/40% 40%
mask: escape-svg($custom-radio-indicator-icon-checked) 4px / 6px 6px
no-repeat;
background: var(--dh-color-input-bg);
}
Expand All @@ -488,6 +488,14 @@ form label small {
}
}

.custom-control-input:indeterminate ~ .custom-control-label {
&::after {
mask: escape-svg($custom-checkbox-indicator-icon-indeterminate) 50%/65%
65% no-repeat;
background: var(--dh-color-input-bg);
}
}

.custom-control-input:disabled {
&:checked ~ .custom-control-label::before {
border: var(--dh-color-input-disabled-fg);
Expand Down
4 changes: 3 additions & 1 deletion packages/components/scss/bootstrap_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ $custom-control-indicator-border-color: var(--dh-color-input-border);
$custom-checkbox-indicator-border-radius: 2px;
$custom-control-indicator-border-width: 2px;
$custom-control-indicator-active-bg: var(--dh-color-input-bg);
$custom-control-indicator-active-border-color: var(--dh-color-input-fg);
$custom-control-indicator-checked-bg: var(--dh-color-input-fg);
$custom-control-indicator-checked-color: var(--dh-color-input-fg);
$custom-control-indicator-checked-color: black; // used as mask fill color
$custom-checkbox-indicator-indeterminate-bg: var(--dh-color-input-fg);
$custom-control-indicator-bg-size: 75% 75%;
$custom-control-indicator-disabled-bg: var(--dh-color-input-disabled-bg);
$custom-control-indicator-checked-disabled-bg: var(
Expand Down

0 comments on commit fd3fe24

Please sign in to comment.