Skip to content

Commit

Permalink
feat(badge): add icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
Askhat Arslanov authored and reme3d2y committed Jul 9, 2021
1 parent 3bfbe70 commit d9e9065
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/badge/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ export type BadgeProps = {
/**
* Цветовое оформление иконки
*/
iconColor?: 'positive' | 'attention' | 'negative' | 'tertiary' | 'secondary' | 'primary';
iconColor?:
| 'positive'
| 'attention'
| 'neutral'
| 'negative'
| 'tertiary'
| 'secondary'
| 'primary';

/**
* Идентификатор для систем автоматизированного тестирования
Expand Down
2 changes: 1 addition & 1 deletion packages/badge/src/docs/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import styles from '!!raw-loader!../index.module.css';
visibleIconOutline: boolean('visibleIconOutline', false),
iconColor: select(
'iconColor',
['positive', 'attention', 'negative', 'tertiary', 'secondary', 'primary'],
['positive', 'attention', 'negative', 'tertiary', 'secondary', 'primary', 'link'],
'positive'
)
};
Expand Down
4 changes: 4 additions & 0 deletions packages/badge/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
color: var(--color-light-graphic-negative);
}

&.neutral {
color: var(--color-light-graphic-link);
}

&.tertiary {
color: var(--color-light-graphic-tertiary);
}
Expand Down

0 comments on commit d9e9065

Please sign in to comment.