Skip to content

Commit aeb9f9f

Browse files
authored
アイコンサイズにxsを追加 (#265)
1 parent 862abb5 commit aeb9f9f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/Icon/Icon.stories.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export const Overview = () => (
6868
size: sm (12px)
6969
</Typography>
7070
{renderIcons({ size: "sm" })}
71+
<Typography weight="bold" size="xxl">
72+
size: xs (10px)
73+
</Typography>
74+
{renderIcons({ size: "xs" })}
7175
</Container>
7276
);
7377

src/components/Icon/Icon.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ export type IconName =
129129

130130
type IconType = "fill" | "line";
131131
type IconColor = IconType | "active" | string;
132-
type IconSize = "sm" | "md" | "lg";
132+
type IconSize = "xs" | "sm" | "md" | "lg";
133133
export const iconSize: { [key in IconSize]: number } = {
134+
xs: 10,
134135
sm: 12,
135136
md: 18,
136137
lg: 24,

0 commit comments

Comments
 (0)