-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderStatic doesn't render media query from a style object #465
Comments
I assumed it was a bug cause media queries work in |
yeah thats true. maybe I can refactor the logic of rule rendering to reuse it for static rendering as well. |
It's the same with pseudo classes like ":selection" or ":before". It's an unexpected behaviour, that they work with "renderRule" bot not with "renderStatic". |
Just ran into this. It would be nice if |
@robinweser Any news? How to add media queries for |
I'm still not sure if I want to add that at all. Fela is not about static styles and thus adding more complexity just for the sake of some DX/readability improvements is not really worth it in my eyes. If you need some special media query styles you can always just pass a string e.g. renderer.renderStatic(`
body {
margin: 10px
}
@media (min-width: 320px) {
body {
margin: 20px
}
}`) |
I'm actually going to close this as I want to keep it simple. |
Type: Bug
Description
renderer.renderStatic
doesn't render media query from a style objectSteps to reproduce
Expected Behavior
Page content should be hidden
Actual Behavior
Page content is visible
The text was updated successfully, but these errors were encountered: