Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Add color yellow to tag colors (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbo authored and Jon Quach committed Feb 7, 2019
1 parent cefe590 commit 1e60005
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Tag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ A Tag component is a UI element that provide contextual labels for categories/ta
| `orange` | Colors the tag orange. |
| `purple` | Colors the tag purple. |
| `red` | Colors the tag red. |
| `yellow` | Colors the tag yellow. |
1 change: 1 addition & 0 deletions src/components/Tag/Tag.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const config = {
orange: getColor('orange.500'),
purple: getColor('purple.500'),
red: getColor('red.500'),
yellow: getColor('yellow.500'),
},
height: 18,
padding: '1px 4px',
Expand Down
10 changes: 9 additions & 1 deletion src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ import { noop, promiseNoop } from '../../utilities/other'
import { AnimateUI, TagWrapperUI, TagUI, BodyUI, SpinnerUI } from './Tag.css'
import { COMPONENT_KEY } from './Tag.utils'

type TagColor = 'blue' | 'green' | 'grey' | 'gray' | 'orange' | 'purple' | 'red'
type TagColor =
| 'blue'
| 'green'
| 'grey'
| 'gray'
| 'orange'
| 'purple'
| 'red'
| 'yellow'

export interface Props {
animationDuration?: number
Expand Down
7 changes: 7 additions & 0 deletions stories/Tag/Tag.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stories.add('Default', () => {
blue: 'blue',
orange: 'orange',
purple: 'purple',
yellow: 'yellow',
},
'grey'
),
Expand Down Expand Up @@ -57,6 +58,9 @@ stories.add('filled', () => (
<Tag color="purple" filled>
Ron
</Tag>
<Tag color="yellow" filled>
Ron
</Tag>
</div>
))

Expand All @@ -80,5 +84,8 @@ stories.add('pulsing', () => (
<Tag color="purple" pulsing>
Ron
</Tag>
<Tag color="yellow" pulsing>
Ron
</Tag>
</div>
))

0 comments on commit 1e60005

Please sign in to comment.