Skip to content

Commit

Permalink
Fixed a bug with EuiButtonEmpty disabled state (#561)
Browse files Browse the repository at this point in the history
* cleaner design for hover empty button no bg

* Updated changelog
  • Loading branch information
bevacqua authored Mar 22, 2018
1 parent f47e4ec commit 0bba638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fixed `EuiToolTip` bug which caused the tooltip to hide when moving the mouse around inside of the trigger element ([#557](https://github.com/elastic/eui/pull/557))
- Added a `buttonColor` prop to `EuiConfirmModal` ([#546](https://github.com/elastic/eui/pull/546))
- Added ‘baseline’ as option to `EuiFlexGroup`'s `alignItems` prop ([#546](https://github.com/elastic/eui/pull/546))
- Fixed a bug where `EuiButtonEmpty` would offer a white background on hover when it was disabled, even when there was no such background transition on hover when the buttons are not disabled ([#561](https://github.com/elastic/eui/pull/561))

# [`0.0.33`](https://github.com/elastic/eui/tree/v0.0.33)

Expand Down
7 changes: 4 additions & 3 deletions src/components/button/button_empty/_button_empty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
fill: $euiButtonColorDisabled;
}

&:focus {
background-color: transparent;
}

&:hover, &:focus {
background-color: $euiColorEmptyShade;
text-decoration: none;
}
}
Expand Down Expand Up @@ -75,8 +78,6 @@ $buttonTypes: (
}

&:hover {
background-color: transparent;

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

0 comments on commit 0bba638

Please sign in to comment.