Commit a7e60ea7 authored by 杨奕's avatar 杨奕 Committed by GitHub

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

parent 16656bce
...@@ -298,6 +298,9 @@ ...@@ -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 @@ ...@@ -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 {
......
...@@ -41,6 +41,14 @@ ...@@ -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 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment