Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change typography variant

dominik-zeglen480cb22dce26
diff --git a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
index 854ff51588..56af6d6a17 100644
--- a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
+++ b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
@@ -14,7 +14,8 @@ const decorate = withStyles(theme => ({
backgroundColor: "#eaeaea",
border: "none",
height: 1,
- marginBottom: 0
+ marginBottom: 0,
+ marginTop: 0
},
root: theme.mixins.gutters({
display: "flex",
@@ -36,7 +37,7 @@ const CardTitle = decorate<CardTitleProps>(
({ classes, children, title, toolbar, onClick, ...props }) => (
<>
<div className={classes.root} {...props}>
- <Typography className={classes.title} variant="body2" onClick={onClick}>
+ <Typography className={classes.title} variant="body1" onClick={onClick}>
{title}
</Typography>
<div className={classes.toolbar}>{toolbar}</div>
diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.ts
index 4e62f98dbd..f623657d53 100644
--- a/saleor/static/dashboard-next/theme.ts
+++ b/saleor/static/dashboard-next/theme.ts
@@ -167,5 +167,11 @@ export default createMuiTheme({
createShadow(10, 41, 7, 10, 18, -5, 20, 31, 2),
createShadow(9, 44, 7, 11, 16, -6, 22, 35, 2),
createShadow(9, 46, 8, 11, 15, -7, 24, 38, 3)
- ]
+ ],
+ typography: {
+ body2: {
+ fontSize: "0.75rem",
+ fontWeight: 600 as 600
+ }
+ }
});