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
If multiple stitch components have the same style, the component's base CSS rules will be duplicated and will take precedence over the additional CSS rules.
The text was updated successfully, but these errors were encountered:
Looks like we have an issue with the CSS injection of base styles. It gets added twice, and the secon time later in the stylesheet, so it overrides the variants.
A bit more info, this happens becuase the generated base class for the Div and Title are the same. They are the same because both components share the exact same base styles.
@jonathantneal perhaps this was done as an optimisation, but its causing specificity issues, similar to the ones we had with atomic css
Bug report
Describe the bug
Div
component variants and css prop styles do not apply.To Reproduce
https://codesandbox.io/s/stitches-bug-su9fq?file=/src/App.tsx
Expected behavior
Variant and css prop styles are applied.
System information
Additional context
If multiple stitch components have the same style, the component's base CSS rules will be duplicated and will take precedence over the additional CSS rules.
The text was updated successfully, but these errors were encountered: