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
This commit is contained in:
Arnie 2023-06-02 13:43:45 +02:00
parent cccc762e51
commit ad183bbc0e

View File

@ -1,6 +1,6 @@
import styled from "@emotion/styled"; import styled from "@emotion/styled";
const Caption = styled("caption")(({ theme }) => ({ const Caption = styled("div")(({ theme }) => ({
color: theme.palette.text.secondary, color: theme.palette.text.secondary,
fontSize: "0.75rem", fontSize: "0.75rem",
lineHeight: 1.5, lineHeight: 1.5,