Skip to content

Commit

Permalink
feat: Made changes to add pink variant for pill (#569)
Browse files Browse the repository at this point in the history
* ACTINSTS-2399: Made changes to add pink variant for pill

* ACTINSTS-2399: Added changeset

* ACTINSTS-2399: fixed linting

---------

Co-authored-by: Vivek Jain <vivekjain@p44-vjain2.local>
  • Loading branch information
vivek-p44 and Vivek Jain authored Jan 6, 2025
1 parent dfc5776 commit 49c18bf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-pigs-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@project44-manifest/react': minor
---

Made change to pink variant for pill
11 changes: 11 additions & 0 deletions packages/react/src/components/Pill/Pill.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ export const useStyles = css({
backgroundColor: '$colors$palette-grey-700',
},
},
pink: {
$$backgroundColor: '$colors$palette-pink-50',

'.manifest-pill__text': {
color: '$palette-red-600',
},

'.manifest-pill__icon': {
backgroundColor: '$palette-red-600',
},
},
},
isCollapsible: {
true: {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Pill/Pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface PillOptions<T extends As = PillElement> extends Options<T>, Sty
*
* @default 'indigo'
*/
colorScheme?: 'grey' | 'indigo' | 'red' | 'yellow';
colorScheme?: 'grey' | 'indigo' | 'pink' | 'red' | 'yellow';
/**
* The icon to render in the pill.
*/
Expand Down

0 comments on commit 49c18bf

Please sign in to comment.