Skip to content

Commit dff53d0

Browse files
fix(site): fix filter font size (#11028)
1 parent 185400d commit dff53d0

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { OptionItem } from "./filter";
2+
import type { Meta, StoryObj } from "@storybook/react";
3+
4+
const meta: Meta<typeof OptionItem> = {
5+
title: "components/Filter/OptionItem",
6+
component: OptionItem,
7+
decorators: [
8+
(Story) => {
9+
return (
10+
<div style={{ width: "300px" }}>
11+
<Story />
12+
</div>
13+
);
14+
},
15+
],
16+
};
17+
18+
export default meta;
19+
type Story = StoryObj<typeof OptionItem>;
20+
21+
export const Selected: Story = {
22+
args: {
23+
option: {
24+
label: "Success option",
25+
value: "success",
26+
},
27+
isSelected: true,
28+
},
29+
};
30+
31+
export const NotSelected: Story = {
32+
args: {
33+
option: {
34+
label: "Success option",
35+
value: "success",
36+
},
37+
isSelected: false,
38+
},
39+
};

site/src/components/Filter/filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export const OptionItem: FC<OptionItemProps> = ({
524524
display: "flex",
525525
alignItems: "center",
526526
gap: 16,
527-
fontSize: 4,
527+
fontSize: 14,
528528
overflow: "hidden",
529529
width: "100%",
530530
}}

0 commit comments

Comments
 (0)