Skip to content

Commit

Permalink
Remove styling from hover state of empty buttons (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
snide authored Nov 10, 2017
1 parent 0f1a444 commit 169e106
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [`master`](https://github.com/elastic/eui/tree/master)

- Equivalent to `0.0.1`
- Changed the hover states of `EuiButtonEmpty` to look more like links.

# [`0.0.1`](https://github.com/elastic/eui/tree/v0.0.1) Initial Release

Expand Down
12 changes: 7 additions & 5 deletions src/components/button/button_empty/_button_empty.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
/**
* 1. We don't want any of the animations that come inherited from the mixin.
* These should act like normal links instead.
*/
.euiButtonEmpty {
@include euiButton;

border-color: transparent;
background-color: transparent;
box-shadow: none;
transform: none !important; // 1
animation: none !important; // 1

.euiButtonEmpty__content {
@include euiButtonContent;
Expand Down Expand Up @@ -73,11 +79,7 @@ $buttonTypes: (
}

&:hover {
@if ($name == 'text') {
background-color: transparent;
} @else {
background-color: transparentize($color, .9);
}
background-color: transparent;

@if ($name == 'disabled') {
cursor: not-allowed;
Expand Down

0 comments on commit 169e106

Please sign in to comment.