Skip to content

Conversation

@adamwathan
Copy link
Member

#642 pointed out a bug in our @responsive handling that didn't account for child rules being at-rules.

That PR fixed the case of nested at-rules being a single level deep which was better than what we were doing, but there was still a bug if at-rules were nested deeper than one level.

This PR solves that issue and simplifies the code path dramatically by using a PostCSS root instance to hold all of the responsive rules, and manipulates all of the selectors using walkRules to recursively alter every rule instead of trying to determine the depth ourselves and handling regular rules differently than at-rules.

@adamwathan adamwathan merged commit c2118be into master Feb 6, 2019
@benface
Copy link
Contributor

benface commented Feb 6, 2019

Your PR descriptions are 👌

@adamwathan adamwathan deleted the responsive-nested-at-rules branch May 13, 2019 14:00
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.

3 participants