Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Change Icon to have thin and normal weights (#59)
Browse files Browse the repository at this point in the history
Change `Icon` to have `thin` and `normal` weights
  • Loading branch information
Justin Anastos authored Aug 9, 2019
2 parents 185b7f3 + a4d166c commit e1742f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/icons/Icons.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ storiesOf("Icons", module)
.addDecorator(withKnobs)
.add("Catalog", () => {
const color = select("Color", colorMap, colors.black.base);
const weight = select("Weight", ["normal", "heavy"], "normal");
const weight = select("Weight", ["thin", "normal"], "normal");

return (
<Page
Expand Down
4 changes: 2 additions & 2 deletions src/icons/scripts/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function updateStrokeWidths(node: JSXOpeningElement) {
stringLiteral("normal")
),
numericLiteral(1.5),
numericLiteral(2)
numericLiteral(1)
)
);
}
Expand Down Expand Up @@ -148,7 +148,7 @@ function createCSSAttribute(css: string): JSXAttribute {
/**
* Weight to render the SVG in. Defaults to "normal"
*/
weight?: "normal" | "heavy";
weight?: "thin" | "normal";
}
export const ${componentName} = ({ weight = "normal", ...props }: Props) => ${jsx}
Expand Down

0 comments on commit e1742f0

Please sign in to comment.