43081j / 43081j/postcss-styled-components

Nested css in template results in skipping template

Open
#7 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Nesting styled-component `css` inside any styled-component template literal results in the template being skipped.

Example:
```
import styled, { css } from "styled-components"

const Foo = styled.div`
${css`
color: hotpink;
`}
`

```
Output: `[postcss (styled-components)] Skipping template (file: ...) as it included either invalid syntax or complex expressions the plugin could not interpret. Consider using a "// postcss-styled-components-disable-next-line" comment to disable this message`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.