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.
1 parent be3657f commit da73bc8Copy full SHA for da73bc8
site/src/components/Typography/Typography.tsx
@@ -21,15 +21,17 @@ export interface TypographyProps extends MuiTypographyProps {
21
export const Typography: React.FC<TypographyProps> = ({ short, ...attrs }) => {
22
return (
23
<MuiTypography
24
- css={{
25
- "&.MuiTypography-body1": {
26
- lineHeight: "21px",
+ css={[
+ short && {
+ "&.MuiTypography-body1": {
27
+ lineHeight: "21px",
28
+ },
29
+ "&.MuiTypography-body2": {
30
+ lineHeight: "18px",
31
+ letterSpacing: 0.2,
32
33
},
- "&.MuiTypography-body2": {
- lineHeight: "18px",
- letterSpacing: 0.2,
- },
- }}
34
+ ]}
35
{...attrs}
36
/>
37
);
0 commit comments