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
css
When using css, the syntax highlighting breaks.
Example code:
const StylesWithCss = css` margin: 0; background: red; & > * { /* valid highlight */ margin: 10px; } `; const StylesWithTopLevel = styled.div<{ $margin?: string; $isActive: boolean | undefined }>( ({ $margin, $isActive }) => css` display: flex; flex-direction: column; margin: ${$margin}; width: 100%; overflow: hidden; position: relative; ${$isActive ? css` margin: 0; background: red; ` : ''} ` ); const StylesWithCondition = styled.div<{ $isActive: boolean | undefined }>` /* valid highlight */ overflow-x: auto; scroll-snap-type: x mandatory; ${({ $isActive }) => $isActive ? css` overflow-x: unset; scroll-snap-type: unset; ` : ''} `;
Screenshot from VSCode:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using
css
, the syntax highlighting breaks.Example code:
Screenshot from VSCode:
The text was updated successfully, but these errors were encountered: