-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[typescript] createStyles is incompatible with top level @media queries #12277
Comments
I'm going to add a test to avoid regression and illustrate the issue. Might be good to add a note to the documentation. |
|
It seems to be working now with TypeScript v3.1.1. |
@eps1lon It would be possible to let all CSS properties be set to a CSSProperties object, though that might not be something that's wanted. Otherwise everything is working as expected and this issue can be closed |
Closing as working as intended. See #12277 (comment) for explanation and workaround. |
Typescript compiler fails when using
@media
queries as top level keys in styles.Expected Behavior
Ideally
@media
queries should be allowed as top level keys in styles.Current Behavior
Typescript error:
Full error message:
Steps to Reproduce
Context
Although having
@media
queries embedded within classes works, but it would be great to have them as top level style elements:Your Environment
The text was updated successfully, but these errors were encountered: