Skip to content

Commit

Permalink
fix(ui-buttons): do not emit failed prop type warning when setting Co…
Browse files Browse the repository at this point in the history
…ndensedButton's color to 'secondary'

TEST PLAN:
set CondensedButton's color prop to secondary. There should be no failed prop type warning in the
console
  • Loading branch information
matyasf committed Jul 12, 2024
1 parent 7774849 commit a3587df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-buttons/src/CondensedButton/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const propTypes: PropValidators<PropKeys> = {
elementRef: PropTypes.func,
as: PropTypes.elementType,
interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
color: PropTypes.oneOf(['primary', 'primary-inverse']),
color: PropTypes.oneOf(['primary', 'primary-inverse', 'secondary']),
margin: ThemeablePropTypes.spacing,
cursor: PropTypes.string,
href: PropTypes.string,
Expand Down

0 comments on commit a3587df

Please sign in to comment.