修复checkboxs按钮模式的disabled (#6410)

>> 样式和table高亮行bg类失效问题

Co-authored-by: v_xukeke <v_xukeke@bilibili.com>
This commit is contained in:
xukeke520 2023-05-05 15:27:54 +08:00 committed by GitHub
parent 2f3dbd8f47
commit fa1e9e3144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,10 @@
@import './functions';
@import './variables';
$remFactor: 16px;
/* 此处放置需要override的变量因为部分变量已经在variables.scss中定义 */
$Table-strip-bg: transparent;
:root {
--white: var(--colors-neutral-text-11);
--primary: var(--colors-brand-5);

View File

@ -463,11 +463,16 @@
border-color: var(--Checkbox-color);
&:hover {
border-color: var(--Checkbox-color) !important;
box-shadow: -1px 0 0 0 var(--Checkbox-color) !important;
&:first-child {
box-shadow: none !important;
}
}
}
&--button--disabled--checked.#{$ns}Checkbox--checkbox {
background: var(--Checkbox-onDisabled-bg);
border-color: var(--Checkbox-color) !important;
box-shadow: none !important;
&:hover {
border-color: var(--Checkbox-color) !important;
}