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

Fix pseudo elements and classes not resolving when chained with each #146

Merged
merged 5 commits into from
Jul 25, 2016

Conversation

tolgap
Copy link
Collaborator

@tolgap tolgap commented Jul 24, 2016

This attempts to fix issue #140 .

While working on the fix, I noticed that mapLast is used instead of List.map when resolving chained pseudo classes. @rtfeldman even though I changed it to List.map, I can't figure out if it's a correct assumption that mapLast was at fault here. Could I have regressed something by changing it to List.map? I've thought about it, and couldn't find a scenario that would fail tests.

Also, while working on it, I realised the same issue applied to pseudo elements, so I fixed that as well, and introduced a nice refactor to remove some duplication.

Thoughts and concerns? :)

@rtfeldman
Copy link
Owner

Wow, great work @tolgap! I also dig the refactor. 😻

@rtfeldman rtfeldman merged commit 3413e22 into rtfeldman:master Jul 25, 2016
@rtfeldman
Copy link
Owner

Published as 4.0.2!

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.

2 participants