File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed
packages/wizard/src/WizardStep Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change 1
1
import { css } from '@leafygreen-ui/emotion' ;
2
2
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
-
18
3
export const stepContentStyles = css `
19
4
/* Content styles */
20
5
` ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
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' ;
8
6
import { WizardStepProps } from './WizardStep.types' ;
9
7
10
8
export function WizardStep ( { title, description, children } : WizardStepProps ) {
11
9
return (
12
10
< 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 > }
17
13
< div className = { stepContentStyles } > { children } </ div >
18
14
</ div >
19
15
) ;
You can’t perform that action at this time.
0 commit comments