Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #391 from Groww/fix/btn-cursor
Browse files Browse the repository at this point in the history
pill background color fixes
  • Loading branch information
AkshayNaikGroww authored Dec 11, 2023
2 parents 801f7fa + 322678e commit b26ac1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@groww-tech/ui-toolkit",
"version": "0.5.3",
"version": "0.5.4",
"description": "A lightning nature UI",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
12 changes: 5 additions & 7 deletions packages/ui-toolkit/src/components/atoms/Pill/Pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ const Pill = (props: Props) => {
size: 20
};

const baseClasses = cn('contentPrimary', 'absolute-center', 'cur-po', 'valign-wrapper', `pill12Size${size}`,
const baseClasses = cn('pill12Pill', 'absolute-center', 'cur-po', 'valign-wrapper', `pill12Size${size}`,
{
borderPrimary: isOutlined && !isAccent && !isSelected,
pill12Pill: true,
'backgroundPrimary borderPrimary': isOutlined && !isAccent && !isSelected,
contentPrimary: !isAccent,
pill12PillHover: !isSelected && !isAccent,
borderNeutral: isSelected && !isAccent,
borderAccent: isAccent,
pill12SelectedPill: !isAccent && isSelected,
contentAccent: isAccent,
'borderNeutral backgroundTertiary': isSelected && !isAccent,
'borderAccent contentAccent': isAccent,
backgroundPositiveSubtle: isSelected && isAccent
});

Expand Down

0 comments on commit b26ac1d

Please sign in to comment.