Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*fix Typography stories style #581

Merged
merged 1 commit into from
Nov 28, 2024
Merged
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
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}
/>
Loading