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 alias plugin causing CSS ordering issue #8592

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 18, 2023

Changes

Fix #7508

I don't really know what's happening, for some reason if we eagerly resolve ids with aliases, it affects the CSS ordering of some CSS styles injected to the HTML. Doing it later (giving other plugins first) seems to fix it and is also what the plugin used to do before I changed it. (I didn't think they were issues with it before)

Testing

Tested with the issue's repro only. I can't find a pattern that's causing the issue.

Docs

n/a. bug fix.

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2023

🦋 Changeset detected

Latest commit: 97b31e8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 18, 2023
@bluwy bluwy marked this pull request as draft September 18, 2023 13:48
@bluwy bluwy marked this pull request as ready for review September 18, 2023 15:00
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ship it 🚢

@bluwy bluwy merged commit 70f2a80 into main Sep 20, 2023
13 checks passed
@bluwy bluwy deleted the fix-css-alias-ordering branch September 20, 2023 09:45
@astrobot-houston astrobot-houston mentioned this pull request Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

>=2.3.0 something changed in scss processing
3 participants