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

Refactor @media handling #14765

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Refactor @media handling #14765

merged 3 commits into from
Oct 23, 2024

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.

2 participants