Skip to content

Commit 8b511c4

Browse files
committed
use typography in Step
1 parent a156678 commit 8b511c4

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
import { css } from '@leafygreen-ui/emotion';
22

3-
export const stepTitleStyles = css`
4-
font-size: 24px;
5-
font-weight: 600;
6-
line-height: 1.33;
7-
margin-bottom: 8px;
8-
color: inherit;
9-
`;
10-
11-
export const stepDescriptionStyles = css`
12-
font-size: 16px;
13-
line-height: 1.5;
14-
margin-bottom: 24px;
15-
color: inherit;
16-
`;
17-
183
export const stepContentStyles = css`
194
/* Content styles */
205
`;

packages/wizard/src/WizardStep/WizardStep.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import React from 'react';
22

3-
import {
4-
stepContentStyles,
5-
stepDescriptionStyles,
6-
stepTitleStyles,
7-
} from './WizardStep.styles';
3+
import { Description, H3 } from '@leafygreen-ui/typography';
4+
5+
import { stepContentStyles } from './WizardStep.styles';
86
import { WizardStepProps } from './WizardStep.types';
97

108
export function WizardStep({ title, description, children }: WizardStepProps) {
119
return (
1210
<div>
13-
<div className={stepTitleStyles}>{title}</div>
14-
{description && (
15-
<div className={stepDescriptionStyles}>{description}</div>
16-
)}
11+
<H3>{title}</H3>
12+
{description && <Description>{description}</Description>}
1713
<div className={stepContentStyles}>{children}</div>
1814
</div>
1915
);

0 commit comments

Comments
 (0)