fix(components): [checkbox] fix only child element style border-radius (#9746)

* fix(components): [checkbox] fix only child element style border-radius

* refactor(components): [checkbox] prettier style

closed #9745

* refactor(components): [checkbox] split border-radius
This commit is contained in:
LIUCHAO
2022-09-13 12:18:37 +08:00
committed by GitHub
parent a4fb76266f
commit a517dba23d

View File

@@ -106,8 +106,8 @@
&:first-child {
.#{$namespace}-checkbox-button__inner {
border-left: getCssVar('border');
border-radius: getCssVar('border-radius-base') 0 0
getCssVar('border-radius-base');
border-top-left-radius: getCssVar('border-radius-base');
border-bottom-left-radius: getCssVar('border-radius-base');
box-shadow: none !important;
}
}
@@ -120,8 +120,8 @@
&:last-child {
.#{$namespace}-checkbox-button__inner {
border-radius: 0 getCssVar('border-radius-base')
getCssVar('border-radius-base') 0;
border-top-right-radius: getCssVar('border-radius-base');
border-bottom-right-radius: getCssVar('border-radius-base');
}
}