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); |
I've noticed that template literal doesn't work properly with the
breakpointmethod.My source code, that leads me to the problem:
As a result, the dynamic values are concatenated into one string.

Dev tools result:
Probably the issue is caused by missing spread operator on
interpolationshere:styled-components-breakpoint/src/breakpoint.ts
Line 30 in 2204a87