Skip to content

Commit

Permalink
style: 优化复选框半选禁用样式
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Dec 1, 2023
1 parent 68c6390 commit cedae5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/amis-ui/scss/components/form/_checks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@
}

&[disabled] + i {
border-color: var(--Checkbox-onDisabled-color);
border-color: var(--Checkbox-color) !important;
cursor: not-allowed;

background-color: var(--checkbox-checkbox-disabled-bg-color);
&:before {
width: var(--Checkbox-inner-size);
height: calc(var(--Checkbox-inner-size) / 2);
background-color: var(--Checkbox-onDisabled-color);
border-width: 0;
}
}

Expand Down Expand Up @@ -285,6 +285,7 @@
&:before {
border-color: var(--Checkbox-onDisabled-color);
background: var(--Checkbox-onDisabled-bg);
border-width: 0 0 px2rem(1px) px2rem(1px);
}
}

Expand Down

0 comments on commit cedae5d

Please sign in to comment.