All files / src/components/common/Text StyledText.tsx

66.66% Statements 2/3
100% Branches 0/0
0% Functions 0/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21        548x                 548x              
import { Text } from "./Text";
import { styled } from "@mui/material";
import { palette } from "@palette";
 
export const StyledMainLinearColorText = styled(Text)(() => ({
  background: palette.gradient[10],
  fontWeight: "light",
  width: "fit-content",
  backgroundClip: "text",
  textFillColor: "transparent",
  WebkitBackgroundClip: "text",
}));
 
export const WrappedText = styled(Text)({
  wordWrap: "break-word",
  overflowWrap: "break-word",
  whiteSpace: "normal",
  wordBreak: "break-all",
  maxWidth: "max-content",
});