Skip to content

Conversation

@RobinMalfait
Copy link
Member

This PR is an internal refactor to improve the way we handle at-rules. Essentially we check for the @ symbol and bail early if that's not the case.

We also improve the way @media is being handled by first checking for @media, and then handle all the params separately.

Last but not least, we also inverted the @theme check condition such that it is handled the same way we handle everything else.

Instead of re-parsing the `@media`, we parse it once and handle each
param individually.
We do this for handling all other parts as well. This makes it more
consistent.
@RobinMalfait RobinMalfait requested a review from a team as a code owner October 23, 2024 16:23
Copy link
Member Author

RobinMalfait commented Oct 23, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @RobinMalfait and the rest of your teammates on Graphite Graphite

This was referenced Oct 23, 2024
@RobinMalfait RobinMalfait merged commit 2ecb943 into next Oct 23, 2024
2 checks passed
@RobinMalfait RobinMalfait deleted the robin/refactor_media_handling branch October 23, 2024 18:26
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