Skip to content

Commit

Permalink
fix: ghost button hover style (ant-design#32289)
Browse files Browse the repository at this point in the history
* fix: disabled ghost button style

* fix

* fix lint
  • Loading branch information
afc163 authored Sep 24, 2021
1 parent 094f9d6 commit 441a6ab
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,30 @@
&&-background-ghost {
color: @btn-default-ghost-color;
border-color: @btn-default-ghost-border;

&,
&:hover,
&:active,
&:focus {
background: @btn-default-ghost-bg;
}

&:hover,
&:focus {
color: @primary-color-hover;
border-color: @primary-color-hover;
}

&:active {
color: @primary-color-active;
border-color: @primary-color-active;
}

&[disabled] {
color: @disabled-color;
background: @btn-default-ghost-bg;
border-color: @btn-default-border;
}
}

&-background-ghost&-primary {
Expand Down

0 comments on commit 441a6ab

Please sign in to comment.