Browse Source

fix: dark button color

pull/20070/head
ycjcl868 5 years ago
parent
commit
e15b9c5f37
  1. 12
      components/button/style/mixin.less

12
components/button/style/mixin.less

@ -67,10 +67,7 @@
&:hover, &:hover,
&:focus { &:focus {
& when (@theme = dark) { & when (@theme = dark) {
.button-color( .button-color(@primary-5; @background; @primary-5);
~`colorPalette('@{btn-primary-bg}', 7) `; @background;
~`colorPalette('@{btn-primary-bg}', 7) `
);
} }
& when not (@theme = dark) { & when not (@theme = dark) {
.button-color( .button-color(
@ -82,12 +79,9 @@
&:active, &:active,
&.active { &.active {
& when (@theme = dark) { & when (@theme = dark) {
.button-color( .button-color(@primary-7; @background; @primary-7);
~`colorPalette('@{btn-primary-bg}', 5) `; @background;
~`colorPalette('@{btn-primary-bg}', 5) `
);
} }
& when not (@theme = default) { & when not (@theme = dark) {
.button-color( .button-color(
~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7) `; @background;
~`colorPalette('@{btn-primary-bg}', 7) ` ~`colorPalette('@{btn-primary-bg}', 7) `

Loading…
Cancel
Save