Skip to content

Commit 4f07d6b

Browse files
committed
chore: convert StackLabel
1 parent 58423d2 commit 4f07d6b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

site/src/components/StackLabel/StackLabel.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,13 @@ import type { ComponentProps, FC } from "react";
1010
*/
1111

1212
export const StackLabel: FC<ComponentProps<typeof Stack>> = (props) => {
13-
return (
14-
<Stack
15-
spacing={0.5}
16-
css={{ paddingLeft: 12, fontWeight: 500 }}
17-
{...props}
18-
/>
19-
);
13+
return <Stack spacing={0.5} className="pl-3 font-medium" {...props} />;
2014
};
2115

2216
export const StackLabelHelperText: FC<FormHelperTextProps> = (props) => {
2317
return (
2418
<FormHelperText
25-
css={(theme) => ({
26-
marginTop: 0,
27-
28-
"& strong": {
29-
color: theme.palette.text.primary,
30-
},
31-
})}
19+
className="m-0 [&_strong]:text-content-primary"
3220
{...props}
3321
/>
3422
);

0 commit comments

Comments
 (0)