-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
keep css class order #98
Comments
@nha Are you sure the order of the css classes on an attribute matters? That said, I'm open to a change that keeps the order of classes. Right now sablono uses a set to store the class name. We could change this to a vector. Patch welcome! |
@roman Quite sure, it just happened to me. Maybe if I find time, would you direct me towards the relevant lines ? |
@nha I think most of the set stuff is in the normalize namespace. See: |
Fixed in master |
Considering that class order matters in css, I was expecting the following sablono fragment :
[:div.ui.middle.aligned.center.aligned.grid]
To render to the following :
class="ui middle aligned center aligned grid"
But instead I got :
class="aligned center grid middle ui"
Of course I can still use
:className
as a workaround, but it would be nice to keep the order.The text was updated successfully, but these errors were encountered: