Skip to content

Commit

Permalink
Fix bug with Button component appearance inside of a ToolBar.
Browse files Browse the repository at this point in the history
Backports PR #9526

**Commit 1:**
Fix bug with Button component appearance inside of a ToolBar.

* Original sha: 0c8eeab
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-16T17:35:17Z
  • Loading branch information
elastic-jasper committed Dec 16, 2016
1 parent c08506c commit ef25eac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
18 changes: 18 additions & 0 deletions src/ui_framework/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,21 @@
@include focus(#ff523c);
}
}

@mixin buttonOnReverseBackground {
.kuiButton--basic {
color: #5a5a5a;
background-color: #FFFFFF;

&:hover:enabled,
&:active:enabled {
color: #000000;
background-color: #FAFAFA;
}

&:disabled {
color: #a7a7a7;
background-color: #F3F3F3;
}
}
}
12 changes: 1 addition & 11 deletions src/ui_framework/components/tool_bar/_tool_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@
height: 50px;
background-color: $panelColor;

.kuiButton--basic {
background-color: #FFFFFF;

&:hover:enabled {
background-color: #FFFFFF;
}

&:active:enabled {
background-color: #FAFAFA;
}
}
@include buttonOnReverseBackground;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
@include scrollbar;
display: flex;
overflow: auto;
min-height: calc(100vh - 100px);
}

.guideNavItems {
Expand Down

0 comments on commit ef25eac

Please sign in to comment.