From ad183bbc0ebcea93a3b8d18cadf8d963d221aed6 Mon Sep 17 00:00:00 2001 From: Arnie Date: Fri, 2 Jun 2023 13:43:45 +0200 Subject: [PATCH] Change Caption component tag from a caption to div Caption tag can only reside in specific context, this change makes it more generic, so it can be used freely --- app/frontend/src/components/common/Text/Caption.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/components/common/Text/Caption.tsx b/app/frontend/src/components/common/Text/Caption.tsx index 8df53b6..9f0fe95 100644 --- a/app/frontend/src/components/common/Text/Caption.tsx +++ b/app/frontend/src/components/common/Text/Caption.tsx @@ -1,6 +1,6 @@ import styled from "@emotion/styled"; -const Caption = styled("caption")(({ theme }) => ({ +const Caption = styled("div")(({ theme }) => ({ color: theme.palette.text.secondary, fontSize: "0.75rem", lineHeight: 1.5,