Skip to content

Commit

Permalink
feat: use chip default skin as neutral and add primary color skin
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Nov 24, 2023
1 parent 2632b4e commit cc5d4df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/components/chip/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";

export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
/** Specifies the visual style of the chip */
skin?: "negative" | "average" | "positive";
skin?: "neutral" | "primary" | "negative" | "average" | "positive";
}

/**
Expand All @@ -15,7 +15,7 @@ export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
*/

export const Chip = ({
skin,
skin = "neutral",
children,
className,
...otherProps
Expand Down
13 changes: 11 additions & 2 deletions packages/components/chip/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@
line-height: 18px;
font-size: 12px;
font-weight: 700;
background-color: #e2e8f0;
color: #1a202c;

display: inline-flex;
border-radius: 8px;
}

.neutral {
background-color: #e2e8f0;
color: #1a202c;
}

.primary {
background-color: get-color(highlight-primary-light);
color: get-color(highlight-primary-dark);
}

.negative {
background-color: #fed7d7;
color: #9b2c2c;
Expand Down

0 comments on commit cc5d4df

Please sign in to comment.