Skip to content

Commit

Permalink
update beta badge styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Nov 6, 2018
1 parent c6b1a84 commit a3be8f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src-docs/src/views/badge/beta_badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default () => (
 
<EuiBetaBadge label="Lab" title="Laboratory" tooltipContent="This module is not GA. Please help us by reporting any bugs." />
&emsp;
<EuiBetaBadge label="Lightening" iconType="bolt" />
<EuiBetaBadge label="Beaker" iconType="lab" />

<EuiSpacer />
<EuiTitle>
Expand Down
6 changes: 2 additions & 4 deletions src/components/badge/beta_badge/_beta_badge.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
.euiBetaBadge {
display: inline-block;
padding: 0 $euiSizeL;
padding: 0 $euiSize;
border-radius: $euiSizeL;
background-color: $euiColorAccent;
box-shadow: inset 0 0 0 1px $euiBorderColor;
vertical-align: super; // if displayed inline with text
@include euiSlightShadowHover($euiColorAccent);

font-size: $euiFontSizeXS;
font-weight: $euiFontWeightBold;
text-transform: uppercase;
letter-spacing: .05em;
color: chooseLightOrDarkText($euiColorAccent, $euiColorEmptyShade, $euiColorFullShade);
line-height: $euiSizeL;
text-align: center;
white-space: nowrap;
Expand Down
1 change: 1 addition & 0 deletions src/components/badge/beta_badge/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
.#{$selector}__betaBadge {
overflow: hidden;
text-overflow: ellipsis;
background-color: $euiColorEmptyShade;
}
}
}
Expand Down

0 comments on commit a3be8f7

Please sign in to comment.