Skip to content

Commit bf62e40

Browse files
authored
Merge pull request #11312 from TylerAPfledderer/style/ButtonTwoLines-text-styles
style(ButtonTwoLines): alter `size` and `color` prop usage for text
2 parents a4073e1 + 163c2d4 commit bf62e40

File tree

1 file changed

+10
-3
lines changed
  • src/components/Buttons/ButtonTwoLines

1 file changed

+10
-3
lines changed

src/components/Buttons/ButtonTwoLines/index.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,20 @@ const ButtonTwoLines = (props: ButtonTwoLinesProps) => {
8787
>
8888
<Text
8989
as="span"
90-
fontSize="md"
90+
size="md"
9191
fontWeight={size === "md" ? "bold" : "normal"}
9292
>
9393
{mainText}
9494
</Text>
95-
{/* TODO: use `size='xs'` instead when the Text theme is added */}
96-
<Text as="span" fontSize="xs">
95+
<Text
96+
as="span"
97+
size="xs"
98+
color={
99+
rest.variant === "outline" || rest.isSecondary
100+
? "body.medium"
101+
: undefined
102+
}
103+
>
97104
{helperText}
98105
</Text>
99106
</Stack>

0 commit comments

Comments
 (0)