Skip to content

Commit aac0e5e

Browse files
committed
fix: control items indeterminate color only for checkboxes
1 parent a7b3c2b commit aac0e5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scss/forms/_control-item.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
mask-repeat: no-repeat;
248248
}
249249

250-
&:indeterminate,
250+
&[type="checkbox"]:indeterminate,
251251
&:checked {
252252
--#{$prefix}control-item-indicator-color: #{$ouds-color-action-selected};
253253
}

site/src/content/docs/components/radio-button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ They are implemented using `.radio-button-item` and `.control-item-*` classes, [
3232
</div>
3333
<div class="radio-button-item">
3434
<div class="control-item-assets-container">
35-
<input checked class="control-item-indicator" type="radio" value="" id="radioDefault2" name="radioBasic" />
35+
<input class="control-item-indicator" type="radio" value="" id="radioDefault2" name="radioBasic" />
3636
</div>
3737
<div class="control-item-text-container">
3838
<label class="control-item-label" for="radioDefault2">Checked radio button</label>

0 commit comments

Comments
 (0)