Skip to content

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

Fix dom validation warnings

dominik-zeglen5f2564dc6126
diff --git a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
index 63ced591e6..bc2cc9277c 100644
--- a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
+++ b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx
@@ -36,7 +36,12 @@ const CardTitle = decorate<CardTitleProps>(
({ classes, children, title, toolbar, onClick, ...props }) => (
<>
<div className={classes.root} {...props}>
- <Typography className={classes.title} variant="body1" onClick={onClick}>
+ <Typography
+ className={classes.title}
+ variant="body1"
+ onClick={onClick}
+ component="span"
+ >
{title}
</Typography>
<div className={classes.toolbar}>{toolbar}</div>