Fix primary color usage in .button-variant-other

Instead of using @primary-5 and @primary-7, use colorPalette mixin to modify @btn-primary-bg
This commit is contained in:
Jeffrey Carl Faden 2018-12-17 11:08:03 -08:00 committed by 偏右
parent f65fb2867f
commit 9ff20ba09a

View File

@ -49,12 +49,18 @@
&:hover, &:hover,
&:focus { &:focus {
.button-color(@primary-5; @background; @primary-5); .button-color(
~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5)
`
);
} }
&:active, &:active,
&.active { &.active {
.button-color(@primary-7; @background; @primary-7); .button-color(
~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7)
`
);
} }
.button-disabled(); .button-disabled();