cxd兼容优化

This commit is contained in:
rickcole 2019-08-15 10:41:39 +08:00
parent 2c9dd98375
commit 4551650cdd
2 changed files with 14 additions and 2 deletions

View File

@ -60,6 +60,16 @@
margin-left: 0;
}
// cxd的ButtonGroup的is-active和:active样式不一样这里做个兼容
.#{$ns}Button--primary:not(:disabled):not(.is-disabled).is-active{
@if variable-exists("ButtonGroup--primary-isActive-color") {
color: $ButtonGroup--primary-isActive-color;
}
@if variable-exists("ButtonGroup--primary-isActive-bg") {
background-color: $ButtonGroup--primary-isActive-bg;
}
}
@if $Button-borderWidth>0 {
> .#{$ns}Button:not(:last-child),
> .#{$ns}ButtonGroup:not(:last-child) > .#{$ns}Button {

View File

@ -202,9 +202,9 @@ $Button--primary-border: $primary;
$Button--primary-onHover-bg: #209bfd;
$Button--primary-onHover-border: $primary;
$Button--primary-onHover-color: $white;
$Button--primary-onActive-bg: $white;
$Button--primary-onActive-bg: #047bdb;
$Button--primary-onActive-border: $primary;
$Button--primary-onActive-color: $primary;
$Button--primary-onActive-color: $white;
$Button--danger-bg: #ea2e2e;
$Button--danger-onHover-bg: #f64545;
@ -212,6 +212,8 @@ $Button--danger-onActive-bg: #d72b2b;
$ButtonGroup-divider-width: px2rem(1px);
$ButtonGroup-divider-color: #fff;
$ButtonGroup--primary-isActive-color: $primary;
$ButtonGroup--primary-isActive-bg: $white;
$Button--link-color: $primary;
$Button--link-onHover-color: #209bfd;