Skip to content

Commit

Permalink
Fix filled EuiButton in EuiControlBar (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Jan 22, 2020
1 parent d5f1340 commit 02de242
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
**Bug fixes**

- Increased column width on `EuiTableHeaderCellCheckbox` to prevent `EuiCheckbox`'s focus ring from getting clipped in `EuiBasicTable` ([#2770](https://github.com/elastic/eui/pull/2770))
- Fixed the display of `EuiButton` within `EuiControlBar` when `fill={true}` to be more consistent with other buttons ([#2781](https://github.com/elastic/eui/pull/2781))

**Deprecations**

Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/control_bar/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class ControlBarWithTabs extends React.Component {
controlType: 'button',
id: 'close_the_hatch',
label: 'Close the Hatch',
fill: true,
onClick: this.closeTheHatch,
className: 'customClassName',
color: 'primary',
Expand Down
5 changes: 4 additions & 1 deletion src/components/control_bar/_control_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,12 @@
}

.euiControlBar__button.euiButton--#{$colorName}:enabled {
box-shadow: none;
}

.euiControlBar__button.euiButton--#{$colorName}:enabled:not(.euiButton--fill) {
color: makeHighContrastColor($colorValue, $euiControlBarBackground);
border-color: makeHighContrastColor($colorValue, $euiControlBarBackground);
box-shadow: none;
}

.euiButtonIcon--#{$colorName} {
Expand Down

0 comments on commit 02de242

Please sign in to comment.