Skip to content
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

Preserve order of CSS classes #99

Merged
merged 1 commit into from
Feb 9, 2016
Merged

Preserve order of CSS classes #99

merged 1 commit into from
Feb 9, 2016

Conversation

r0man
Copy link
Owner

@r0man r0man commented Feb 9, 2016

The order of CSS classes matters
see http://stackoverflow.com/questions/15670631/does-the-order-of-classes-listed-on-an-item-affect-the-css

Change the underlying representation from sets to vectors

Adopt the convention : :className comes after the keywordized CSS classes.
ie. [:div.a.b {:className "c d"}] ;;=> "a b c d"

Deduplicate the same classes
ie. [:div.a.b.b {:className "c d"}] ;;=> "a b c d"

The order of CSS classes matters
see http://stackoverflow.com/questions/15670631/does-the-order-of-classes-listed-on-an-item-affect-the-css

Change the underlying representation from sets to vectors

Adopt the convention : :className comes after the keywordized CSS classes.
ie. [:div.a.b {:className "c d"}] ;;=> "a b c d"

Deduplicate the same classes
ie. [:div.a.b.b {:className "c d"}] ;;=> "a b c d"
r0man added a commit that referenced this pull request Feb 9, 2016
@r0man r0man merged commit 5c2851e into master Feb 9, 2016
@r0man r0man deleted the preserve-class-order branch February 9, 2016 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants