Skip to content

Fix filter condition in getAtRules function#452

Closed
ilyary wants to merge 2 commits into
styled-components:mainfrom
ilyary:patch-1
Closed

Fix filter condition in getAtRules function#452
ilyary wants to merge 2 commits into
styled-components:mainfrom
ilyary:patch-1

Conversation

@ilyary

@ilyary ilyary commented Nov 27, 2025

Copy link
Copy Markdown

AST parser from const css = require('@adobe/css-tools'); preserves spaces in media, e.g.: "media": "(max-width: 1279px)",

So, let us condense it as well

ilyary and others added 2 commits November 27, 2025 12:06
AST parser from `const css = require('@adobe/css-tools');` preserves spaces in media, e.g.:  `"media": "(max-width: 1279px)",`

So, let us condense it as well
@quantizor

Copy link
Copy Markdown
Contributor

Superseded by #454 which incorporates your fix. Thank you @ilyary for identifying the issue and proposing the solution!

@quantizor quantizor closed this Mar 21, 2026
@quantizor

Copy link
Copy Markdown
Contributor

Thanks @ilyary! Your fix for the at-rules filter condition is included in v7.3.0.

@quantizor

Copy link
Copy Markdown
Contributor

Thanks for the fix, @ilyary! Your work on the at-rule filtering informed the nested at-rule rewrite in v7.3.1, which also adds support for @container and @layer queries.

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