Skip to content

Commit

Permalink
Merge pull request #1492 from xodio/fix-button-hover-style
Browse files Browse the repository at this point in the history
Fix hover and disabled button styles
  • Loading branch information
brusherru committed Oct 23, 2018
2 parents 15dae9b + 9e8d487 commit f1ae4aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/xod-client/src/core/styles/components/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
cursor: pointer;
text-decoration: none;

&:hover:not(:disabled) {
&:hover {
background-color: $button-bg-color-hover-dark;
border-color: $button-border-color;
box-shadow: 0 0 7px 0 rgba(0,0,0,0.5);
Expand All @@ -20,9 +20,12 @@
box-shadow: none;
}

&:disabled {
&:disabled, &:disabled:hover {
cursor: default;
opacity: 0.5;
background-color: $button-bg-color-dark;
border: 1px solid $button-border-color;
box-shadow: none;
}

&--light {
Expand All @@ -37,6 +40,12 @@
background-color: $button-bg-color-light;
border-color: $button-border-color-active-light;
}

&:disabled, &:disabled:hover {
cursor: default;
opacity: 0.5;
background-color: $button-bg-color-light;
}
}

&--small {
Expand Down

0 comments on commit f1ae4aa

Please sign in to comment.