Skip to content

Commit

Permalink
*fix Typography stories style (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sodik authored Nov 28, 2024
1 parent 7bd4b2d commit 80da390
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/ui/__stories__/Typography.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ import styleConsts from '../styles/constants/export.module.scss'

<Meta title="Visual Style/Typography" />

export const getSampleText = (letterSpacing) => (
<span
style={{ letterSpacing: '0.25px' }}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</span>
);
export const sampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'

# Typography

Expand All @@ -28,7 +22,7 @@ export const getSampleText = (letterSpacing) => (
styleConsts.fontSizeH3,
]}
fontWeight={styleConsts.fontWeightHeadingRegular}
sampleText={getSampleText()}
sampleText={sampleText}
fontFamily={styleConsts.fontFamilyHeading}
/>

Expand All @@ -44,7 +38,7 @@ export const getSampleText = (letterSpacing) => (
styleConsts.fontSizeH3,
]}
fontWeight={styleConsts.fontWeightHeadingBold}
sampleText={getSampleText()}
sampleText={sampleText}
fontFamily={styleConsts.fontFamilyHeading}
/>

Expand All @@ -58,7 +52,7 @@ export const getSampleText = (letterSpacing) => (
styleConsts.fontSizeBodySmall,
]}
fontWeight={styleConsts.fontWeightTextRegular}
sampleText={getSampleText()}
sampleText={sampleText}
fontFamily={styleConsts.fontFamilyText}
/>

Expand All @@ -72,6 +66,6 @@ export const getSampleText = (letterSpacing) => (
styleConsts.fontSizeBodySmall,
]}
fontWeight={styleConsts.fontWeightTextBold}
sampleText={getSampleText()}
sampleText={sampleText}
fontFamily={styleConsts.fontFamilyText}
/>

0 comments on commit 80da390

Please sign in to comment.