Skip to content

Commit da73bc8

Browse files
committed
🧹
1 parent be3657f commit da73bc8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

site/src/components/Typography/Typography.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ export interface TypographyProps extends MuiTypographyProps {
2121
export const Typography: React.FC<TypographyProps> = ({ short, ...attrs }) => {
2222
return (
2323
<MuiTypography
24-
css={{
25-
"&.MuiTypography-body1": {
26-
lineHeight: "21px",
24+
css={[
25+
short && {
26+
"&.MuiTypography-body1": {
27+
lineHeight: "21px",
28+
},
29+
"&.MuiTypography-body2": {
30+
lineHeight: "18px",
31+
letterSpacing: 0.2,
32+
},
2733
},
28-
"&.MuiTypography-body2": {
29-
lineHeight: "18px",
30-
letterSpacing: 0.2,
31-
},
32-
}}
34+
]}
3335
{...attrs}
3436
/>
3537
);

0 commit comments

Comments
 (0)