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

Change Icon to have thin and normal weights #59

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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