Skip to content

Commit

Permalink
Remove beta badge accent color (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Provost <[email protected]>

Signed-off-by: Matt Provost <[email protected]>
  • Loading branch information
BSFishy authored Dec 14, 2022
1 parent 0b67f1a commit 5e21bd0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 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 @@ -13,7 +13,7 @@ import React from 'react';

import { OuiBetaBadge, OuiSpacer, OuiTitle } from '../../../../src/components';

const colors = ['hollow', 'accent', 'subdued'];
const colors = ['hollow', 'subdued'];

export default () => (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ exports[`OuiBetaBadge is rendered 1`] = `
</span>
`;

exports[`OuiBetaBadge props color accent is rendered 1`] = `
<span
class="ouiBetaBadge ouiBetaBadge--accent"
title="Beta"
>
Beta
</span>
`;

exports[`OuiBetaBadge props color hollow is rendered 1`] = `
<span
class="ouiBetaBadge ouiBetaBadge--hollow"
Expand Down
10 changes: 0 additions & 10 deletions src/components/badge/beta_badge/_beta_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,3 @@
color: chooseLightOrDarkText($backgroundColor, $ouiColorGhost, $ouiColorInk);
}
}

.ouiBetaBadge--accent {
$backgroundColor: $ouiColorAccentText;
background: $backgroundColor;
color: chooseLightOrDarkText($backgroundColor, $ouiColorGhost, $ouiColorInk);

&.ouiBetaBadge-isClickable {
color: chooseLightOrDarkText($backgroundColor, $ouiColorGhost, $ouiColorInk);
}
}
3 changes: 1 addition & 2 deletions src/components/badge/beta_badge/beta_badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import { OuiToolTip, ToolTipPositions } from '../../tool_tip';
import { OuiIcon, IconType } from '../../icon';

const colorToClassMap = {
accent: 'ouiBetaBadge--accent',
subdued: 'ouiBetaBadge--subdued',
hollow: 'ouiBetaBadge--hollow',
};
Expand Down Expand Up @@ -134,7 +133,7 @@ type BadgeProps = {
*/
title?: string;
/**
* Accepts accent, subdued and hollow.
* Accepts subdued and hollow.
*/
color?: BetaBadgeColor;
size?: BetaBadgeSize;
Expand Down

0 comments on commit 5e21bd0

Please sign in to comment.