-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I've noticed that template literal doesn't work properly with the breakpoint method.
My source code, that leads me to the problem:
${breakpoint('md')`
&:hover {
color: ${({ theme }) => theme.colors.green};
background-color: ${({ theme }) => theme.colors.darkGrey_2};
}
`};
As a result, the dynamic values are concatenated into one string.
Dev tools result:

Probably the issue is caused by missing spread operator on interpolations here:
| )(breakpointA, breakpointB)(strings, interpolations); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels