You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using responsive variants with the @initial breakpoint along with another breakpoint that happens to match the value in @initial, the initial value is ignored.
I would expect the component to have color: red at screens <100px, color: blue at screens between 100px and 200px, and color: redagain at screens > 200px.
Instead, no color is applied at screens < 100px. Styling at other breakpoints is applied correctly.
When changing @medium to "yellow" (something other than @initial), all styling is applied correctly.
Codesandbox – observe no color applied on <40em screen width.
System information
OS: [e.g. macOS, Windows]
Browser (if applies) [e.g. chrome, safari]
Version of Stitches: 1.2.8
Version of Node.js: 16.17.1
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
When using responsive variants with the
@initial
breakpoint along with another breakpoint that happens to match the value in@initial
, the initial value is ignored.To Reproduce
Given the styled component:
and given the
media
property increateStitches
:setting the color variant responsively like this:
I would expect the component to have
color: red
at screens <100px,color: blue
at screens between 100px and 200px, andcolor: red
again at screens > 200px.Instead, no color is applied at screens < 100px. Styling at other breakpoints is applied correctly.
When changing
@medium
to"yellow"
(something other than@initial
), all styling is applied correctly.Codesandbox – observe no color applied on <40em screen width.
System information
The text was updated successfully, but these errors were encountered: