Support for manually ordering rules in the rare case it's needed #822
Replies: 5 comments 4 replies
-
Related: #734 (similar topic, but this is a specific use-case rather than "I want X") |
Beta Was this translation helpful? Give feedback.
-
Hey Daniel, it'd be great if you could share a basic example of the end result in a codepen (or similar). Demonstrating the desired static HTML and CSS you are after. Once we have a working example, should be able to recommend the right approach using VE. |
Beta Was this translation helpful? Give feedback.
-
Sure. https://codepen.io/0xb4d1dea/pen/MWGjvMX is a basic example of how moving the media query after the |
Beta Was this translation helpful? Give feedback.
-
Looks like I can duplicate the |
Beta Was this translation helpful? Give feedback.
-
Ok i have a few options: Option 1. Ensure the svg is not within a
|
Beta Was this translation helpful? Give feedback.
-
I have run into a slightly obscure case while overriding the rendering of an inline SVG by using
!important
to override its attribute styles.I'm using this to change the fill color on hover.
Any idea how to adapt this to vanilla-extract? It (eg) moves media queries to the end, which breaks this pattern.
Beta Was this translation helpful? Give feedback.
All reactions