dvingo / cljs-emotion Goto Github PK
View Code? Open in Web Editor NEWClojureScript wrapper of the emotion css-in-js library
Home Page: https://dvingo.github.io/cljs-emotion
License: MIT License
ClojureScript wrapper of the emotion css-in-js library
Home Page: https://dvingo.github.io/cljs-emotion
License: MIT License
Hello!
Quick issue I ran into. Not sure if it is specific to the version I am using (2021-03-10.0.0).
I am declaring a style like so:
(defstyled full-height :div
{:height "100%"}
(fn [props]
(:style props)))
# In a component in a different file
(defn some-component []
[component {:style {:width "70%"
"@media (min-width: 700px)" {:width "50%"}}}
[:p "hello"]])
I am expecting that the string media query will be preserved, however, it is not and transformed into a keyword, which causes issues when rendering a component.
Is this expected behavior?
Let me know if you have any follow up questions!
Note: I have found a workaround for now, but this functionality would be nice. Would be up for submitting a patch when I have time. ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.