We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referencing multiple child styled-components on the same row breaks syntax highlighting for the rest of the file.
Example:
const StyledSection = styled.div` background-color: ${({ theme }) => theme.colors.primary}; text-align: center; ${P}, ${H2}, ${H3} { color: ${({ theme }) => theme.colors.white}; } `; const HeaderIcon = styled.div` display: block; align-items: center; ${H3} { @media (min-width: ${({ theme }) => theme.breakpoints.tablet}) { font-size: 1.1rem; } @media (min-width: ${({ theme }) => theme.breakpoints.desktop}) { font-size: 1.5rem; } font-size: 1.6875rem; margin: 0; } `;
The text was updated successfully, but these errors were encountered:
Apparently the same applies for using +.
+
const StyledP = styled.p` text-align: center; + ${P} { color: ${({ theme }) => theme.colors.white}; } `;
Sorry, something went wrong.
Related issue with styled components and specific nesting issues:
No branches or pull requests
Referencing multiple child styled-components on the same row breaks syntax highlighting for the rest of the file.
Example:
The text was updated successfully, but these errors were encountered: