Comments (3)
Thanks for clarifying, that does make me think we should address this.
from ornament.
Thanks for the report. This is indeed a difference with Garden that we should document. We recommend using [:p [:span {:color :blue}]]
since that makes the nesting explicit.
I'll leave the issue open because we may still decide to support this down the road, but it leads to ambiguity, we'd need to guess if the second keyword is a CSS selector or a Girouette class.
It does raise a good point though that we should at error or at least warn when using a Girouette class that is not recognized, instead of quietly not emitting anything.
from ornament.
Thanks.
Just to clarify [:p :span {:color :blue}] is supposed to target both :p and :span and not a :span nestead in a :p
from ornament.
Related Issues (12)
- Availability on Clojars HOT 9
- How to use defstyled component in hiccup context? HOT 3
- Best practice for using style tokens ad-hoc? HOT 2
- add clj-kondo config export HOT 2
- How to pass html attributes to styled component with render function? HOT 1
- Do we still want to support tailwind v2, or move everything over to tailwind v3? HOT 1
- Error while macroexpanding cljs/cljc HOT 2
- Styling is broken for ring styles like 'ring-1' HOT 3
- Overload style rules on a styled component with custom render fn? HOT 6
- Ornament component with over 19 child throw arrity exception on ClojureScript HOT 4
- `girouette` child selectors ignored HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ornament.