Closed
Description
In my @cartesapp I make heavy use of styled-components to wrap multiple element styled in one component only.
Just tried converting my codebase to yak, I got this error :
Selector "h1" is not pure (pure selectors must contain at least one local class or id)
1 | .ExplanationWrapper {
> 2 | h1 {
| ^
3 | margin-top: 0;
4 | }
Is this a limitation when using Yak ? In this case, I believe it should be noted on the README as a big limitation when migrating.
This is the file in question :
import { styled } from 'next-yak'
export const ExplanationWrapper = styled.div`
h1 {
margin-top: 0;
}
ol {
padding-left: 1.5rem;
}
margin: 1vw 1rem;
a {
color: var(--darkestColor);
}
p {
margin: 1rem 0;
line-height: 1.4rem;
}
`
export const ContentSection = styled.section`
position: relative;
h1 {
margin: 0;
margin-left: 0.1rem;
}
`
Metadata
Metadata
Assignees
Labels
No labels