Skip to content

Commit

Permalink
stories adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan committed Aug 5, 2024
1 parent f35b3ad commit 3f3a56b
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions @navikt/core/react/src/typography/stories/font.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ export const Cyrillic: Story = {
cyrillic: true,
showDefault: false,
},
parameters: {
chromatic: { disable: true },
},
};

export const Samisk: Story = {
Expand All @@ -127,6 +130,9 @@ export const Samisk: Story = {
samisk: true,
showDefault: false,
},
parameters: {
chromatic: { disable: true },
},
};

export const Mixed: Story = {
Expand All @@ -136,15 +142,15 @@ export const Mixed: Story = {
showDefault: false,
mixed: true,
},
parameters: {
chromatic: { disable: true },
},
};

export const FontWeight: Story = {
render: () => {
return (
<>
{fontWeights.map((weight) => (
<FontComponent key={weight} weight={weight} family="Source Sans 3" />
))}
{fontWeights.map((weight) => (
<>
<h2>{weight}</h2>
Expand All @@ -164,29 +170,10 @@ export const FontFamily: Story = {
render: (args) => {
return (
<>
<FontComponent
weight={args.weight ?? 400}
family="Source Sans Pro"
mixed
/>
<FontComponent
weight={args.weight ?? 400}
family="Source Sans 3"
mixed
/>

<h2>Pro</h2>
<FontComponent
weight={args.weight ?? 400}
family="Source Sans Pro"
mixed
/>
<h2>3</h2>
<FontComponent
weight={args.weight ?? 400}
family="Source Sans 3"
mixed
/>
<h2>Source Sans Pro</h2>
<FontComponent weight={args.weight} family="Source Sans Pro" mixed />
<h2>Source Sans 3</h2>
<FontComponent weight={args.weight} family="Source Sans 3" mixed />
</>
);
},
Expand Down

0 comments on commit 3f3a56b

Please sign in to comment.