diff --git a/components/button/style/index.less b/components/button/style/index.less index 4c22fa7877..41b888a4ff 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -16,6 +16,10 @@ .@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) { border-right-color: @btn-group-border; border-left-color: @btn-group-border; + + &:disabled { + border-color: @btn-default-border; + } } .@{btn-prefix-cls}-group &:first-child { @@ -28,7 +32,7 @@ } .@{btn-prefix-cls}-group &:last-child:not(:first-child), - .@{btn-prefix-cls}-group & + .@{btn-prefix-cls} { + .@{btn-prefix-cls}-group & + & { border-left-color: @btn-group-border; &[disabled] { border-left-color: @btn-default-border; diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index 72fcfc5cef..942019e23c 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -76,12 +76,18 @@ display: inline-block; > .@{btnClassName} { position: relative; + z-index: 1; + &:hover, &:focus, &:active, &.active { z-index: 2; } + + &:disabled { + z-index: 0; + } } // size