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

Commit

Permalink
optimised classes
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiSoniWeb committed Dec 11, 2023
1 parent 3587798 commit 322678e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 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,17 +30,13 @@ const Pill = (props: Props) => {
size: 20
};

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

Expand Down

0 comments on commit 322678e

Please sign in to comment.