Skip to content

Commit 5039154

Browse files
style(components): change to wizard font weights (#20296)
1 parent e1f52ac commit 5039154

File tree

1 file changed

+19
-6
lines changed
  • components/src/molecules/WizardHeader

1 file changed

+19
-6
lines changed

components/src/molecules/WizardHeader/index.tsx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { LegacyStyledText, StepMeter, StyledText } from '../../atoms'
1+
import { StepMeter, StyledText } from '../../atoms'
2+
import { grey60 } from '../../helix-design-system/colors'
23
import { Box, Btn, Flex } from '../../primitives'
34
import { ALIGN_CENTER, DIRECTION_ROW } from '../../styles'
45
import { SPACING } from '../../ui-style-constants'
@@ -45,16 +46,28 @@ export const WizardHeader = (props: WizardHeaderProps): JSX.Element => {
4546
currentStep != null &&
4647
totalSteps != null &&
4748
currentStep > 0 ? (
48-
<LegacyStyledText className={styles.step_text}>
49+
<StyledText
50+
desktopStyle="bodyDefaultRegular"
51+
oddStyle="bodyTextSemiBold"
52+
color={grey60}
53+
>
4954
{`Step ${currentStep} / ${totalSteps}`}
50-
</LegacyStyledText>
55+
</StyledText>
5156
) : null}
5257
</Flex>
5358
{onExit != null ? (
54-
<Btn onClick={onExit} aria-label="Exit" disabled={exitDisabled}>
55-
<LegacyStyledText className={styles.exit_button}>
59+
<Btn
60+
onClick={onExit}
61+
aria-label="Exit"
62+
disabled={exitDisabled}
63+
className={styles.exit_button}
64+
>
65+
<StyledText
66+
desktopStyle="bodyDefaultSemiBold"
67+
oddStyle="bodyTextSemiBold"
68+
>
5669
{exitButtonCopy ?? 'Exit'}
57-
</LegacyStyledText>
70+
</StyledText>
5871
</Btn>
5972
) : null}
6073
</Flex>

0 commit comments

Comments
 (0)