Skip to content

Commit

Permalink
Adjusted style of beta badge on EuiKeyPadMenuItem (elastic#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos authored and snide committed Oct 10, 2019
1 parent 3619e81 commit cf5dadb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Added `ip` icon to glyph set ([#2371](https://github.com/elastic/eui/pull/2371))
- Set `textOnly={true}` for expanded rows in `EuiBasicTable` ([#2376](https://github.com/elastic/eui/pull/2376))
- Added `visAreaStacked`, `visBarVerticalStacked`, and `visBarHorizontalStacked` icons to glyph set ([#2379](https://github.com/elastic/eui/pull/2379))
- Adjusted style of beta badge on `EuiKeyPadMenuItem` ([#2375](https://github.com/elastic/eui/pull/2375))

**Bug fixes**

Expand Down
6 changes: 3 additions & 3 deletions src-docs/src/views/key_pad_menu/key_pad_beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export default () => (
<EuiKeyPadMenuItem
label="Dashboard"
href="#"
betaBadgeLabel="Lab"
betaBadgeTooltipContent="This module is not GA. Please help us by reporting any bugs."
betaBadgeIconType="bolt">
betaBadgeLabel="External"
betaBadgeTooltipContent="This module is an external app."
betaBadgeIconType="popout">
<EuiIcon type="dashboardApp" size="l" />
</EuiKeyPadMenuItem>
</EuiKeyPadMenu>
Expand Down
6 changes: 6 additions & 0 deletions src/components/key_pad_menu/_key_pad_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
}
}

.euiKeyPadMenuItem__betaBadge {
color: $euiTextColor;
background-color: tintOrShade($euiColorLightShade, 50%, 0%);
box-shadow: none;
}

.euiKeyPadMenuItem__icon {
transition: transform $euiAnimSpeedNormal $euiAnimSlightBounce;
transform: translateY(2px);
Expand Down

0 comments on commit cf5dadb

Please sign in to comment.