We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size
color
1 parent 34f3fec commit 163c2d4Copy full SHA for 163c2d4
src/components/Buttons/ButtonTwoLines/index.tsx
@@ -87,13 +87,20 @@ const ButtonTwoLines = (props: ButtonTwoLinesProps) => {
87
>
88
<Text
89
as="span"
90
- fontSize="md"
+ size="md"
91
fontWeight={size === "md" ? "bold" : "normal"}
92
93
{mainText}
94
</Text>
95
- {/* TODO: use `size='xs'` instead when the Text theme is added */}
96
- <Text as="span" fontSize="xs">
+ <Text
+ as="span"
97
+ size="xs"
98
+ color={
99
+ rest.variant === "outline" || rest.isSecondary
100
+ ? "body.medium"
101
+ : undefined
102
+ }
103
+ >
104
{helperText}
105
106
</Stack>
0 commit comments