Skip to content

Commit

Permalink
Fix button vertical alignment (#232)
Browse files Browse the repository at this point in the history
Buttons now correctly align regardless of if they have icons next to them.
  • Loading branch information
snide authored Dec 20, 2017
1 parent 7671408 commit ff4b42f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `0.0.7`.
**Bug fixes**

- Fix button vertical alignment. [(#232)](https://github.com/elastic/eui/pull/232)

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

Expand Down
2 changes: 2 additions & 0 deletions src/components/button/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $euiButtonColorDisabled: tintOrShade($euiTextColor, 70%, 80%);
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;

&:hover:not(:disabled) {
transform: translateY(-1px);
Expand All @@ -41,6 +42,7 @@ $euiButtonColorDisabled: tintOrShade($euiTextColor, 70%, 80%);
@mixin euiButtonContent($isReverse: false) {
height: 100%;
width: 100%;
vertical-align: middle;

@if ($isReverse) {
flex-direction: row-reverse;
Expand Down

0 comments on commit ff4b42f

Please sign in to comment.