Skip to content

Commit

Permalink
add 'success' as an acceptable prop value for color
Browse files Browse the repository at this point in the history
  • Loading branch information
babs20 committed Jun 16, 2021
1 parent 046013e commit 9ca630c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/badge/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export type EuiBadgeProps = {
iconSide?: IconSide;

/**
* Accepts either our palette colors (primary, secondary ..etc) or a hex value `#FFFFFF`, `#000`.
* Accepts either our palette colors (primary, success ..etc) or a hex value `#FFFFFF`, `#000`.
* **`secondary` color is DEPRECATED, use `success` instead**
*/
color?: IconColor;
/**
Expand Down Expand Up @@ -116,6 +117,7 @@ const colorToHexMap: { [color in IconColor]: string } = {
// TODO - replace with variable once https://github.com/elastic/eui/issues/2731 is closed
default: '#d3dae6',
primary: visColors[1],
success: visColors[0],
secondary: visColors[0],
accent: visColors[2],
warning: visColors[5],
Expand Down

0 comments on commit 9ca630c

Please sign in to comment.