Skip to content

Commit

Permalink
feat(atoms): add secondary color to the Icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed May 31, 2018
1 parent 87df096 commit ee9442a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/atoms/typography/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type IconProps = {
/** icon name */
name: string,
/** icon color */
color?: 'red' | 'green' | 'blue' | 'primary',
color?: 'red' | 'green' | 'blue' | 'primary' | 'secondary',
/** icon size */
size?: 'xs' | 'sm' | 'md' | 'lg' | 'stretch',
};
Expand All @@ -20,6 +20,7 @@ const theme : Theme<IconProps> = createTheme(name, (colors: *): * => ({
modifiers: {
color: {
primary: { color: colors.PRIMARY },
secondary: { color: colors.SECONDARY },
red: { color: colors.RED },
green: { color: colors.GREEN },
blue: { color: colors.BLUE },
Expand Down

0 comments on commit ee9442a

Please sign in to comment.