Radio & Checkbox: fix first button style (#10544)

pull/10551/head
杨奕 2018-04-04 10:20:02 +08:00 committed by GitHub
parent 16656bce63
commit a7e60ea766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 7 deletions

View File

@ -298,6 +298,9 @@
border-color: $--checkbox-button-checked-border-color; border-color: $--checkbox-button-checked-border-color;
box-shadow: -1px 0 0 0 $--color-primary-light-4; box-shadow: -1px 0 0 0 $--color-primary-light-4;
} }
&:first-child .el-checkbox-button__inner {
border-left-color: $--checkbox-button-checked-border-color;
}
} }
&.is-disabled { &.is-disabled {
@ -309,6 +312,9 @@
border-color: $--button-disabled-border; border-color: $--button-disabled-border;
box-shadow: none; box-shadow: none;
} }
&:first-child .el-checkbox-button__inner {
border-left-color: $--button-disabled-border;
}
} }
&:first-child { &:first-child {

View File

@ -41,6 +41,14 @@
} }
} }
&:first-child {
.el-radio-button__inner {
border-left: $--border-base;
border-radius: $--border-radius-base 0 0 $--border-radius-base;
box-shadow: none !important;
}
}
@include e(orig-radio) { @include e(orig-radio) {
opacity: 0; opacity: 0;
outline: none; outline: none;
@ -72,13 +80,6 @@
} }
} }
&:first-child {
.el-radio-button__inner {
border-left: $--border-base;
border-radius: $--border-radius-base 0 0 $--border-radius-base;
box-shadow: none !important;
}
}
&:last-child { &:last-child {
.el-radio-button__inner { .el-radio-button__inner {
border-radius: 0 $--border-radius-base $--border-radius-base 0; border-radius: 0 $--border-radius-base $--border-radius-base 0;