mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
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:
parent
f65fb2867f
commit
9ff20ba09a
@ -49,12 +49,18 @@
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
.button-color(@primary-5; @background; @primary-5);
|
||||
.button-color(
|
||||
~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5)
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
&:active,
|
||||
&.active {
|
||||
.button-color(@primary-7; @background; @primary-7);
|
||||
.button-color(
|
||||
~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7)
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
.button-disabled();
|
||||
|
Loading…
Reference in New Issue
Block a user