fix(checkbox): checkbox bordered padding & height (#2784)

This commit is contained in:
云游君 2021-08-03 08:55:22 +08:00 committed by GitHub
parent 2111d8a88f
commit 3c2ed958f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -36,6 +36,7 @@ $--checkbox-bordered-input-width: map.merge(
$--checkbox-bordered-height: () !default;
$--checkbox-bordered-height: map.merge(
(
'default': 40px,
'medium': 36px,
'small': 32px,
'mini': 28px,
@ -69,12 +70,12 @@ $--checkbox-line-height: map.merge(
margin-right: 30px;
@include when(bordered) {
padding: var(--el-checkbox-bordered-padding);
padding: map.get($--checkbox-bordered-padding, 'default');
border-radius: var(--el-border-radius-base);
border: var(--el-border-base);
box-sizing: border-box;
line-height: normal;
height: var(--el-checkbox-bordered-height);
height: map.get($--checkbox-bordered-height, 'default');
&.is-checked {
border-color: var(--el-color-primary);

View File

@ -203,7 +203,6 @@ $--checkbox: map.merge(
'checked-background-color': var(--el-color-primary),
'checked-icon-color': var(--el-fill-base),
'input-border-color-hover': var(--el-color-primary),
'bordered-height': 40px,
'button-checked-background-color': var(--el-color-primary),
'button-checked-font-color': var(--el-color-white),
'button-checked-border-color': var(--el-color-primary),