EscolaLMS/Front

View on GitHub
src/components/TextEllipsis/styles.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import styled from "styled-components";

export const StyledSpan = styled.span<React.HTMLAttributes<HTMLSpanElement>>`
  color: ${(props) => props.color};
`;

export const StyledSpanTail = styled.span<
  React.HTMLAttributes<HTMLSpanElement>
>`
  color: ${(props) => props.color};
  ${StyledSpan}:hover & {
    display: none;
  }
`;

export const StyledSpanChild = styled.span<
  React.HTMLAttributes<HTMLSpanElement>
>`
  color: ${(props) => props.color};
  display: none;
  ${StyledSpan}:hover & {
    display: block;
  }
`;