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 astro scoping of "@import" inside of style tags #2656

Merged
merged 5 commits into from
Feb 25, 2022

Conversation

FredKSchott
Copy link
Member

Changes

Testing

  • I have a test ready, however this only works in --experimental-static-build. @matthewp is it better to add the new test commented out, for when we migrate over tests?

Docs

  • N/A

@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2022

🦋 Changeset detected

Latest commit: cdb4a37

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

This PR includes changesets to release 1 package
Name Type
astro Patch

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 Feb 25, 2022
@github-actions github-actions bot added the pkg: example Related to an example package (scope) label Feb 25, 2022
"build": "astro build --experimental-static-build",
"scan-build": "astro build",
"scan-build": "astro build --experimental-static-build",
Copy link
Contributor

Choose a reason for hiding this comment

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

this is called "scan-build" because I wanted to test the old legacy build vs. the static build when it was first being developed. Can probably just drop this script now, it's not needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, apologies! I'll remove for now

@matthewp
Copy link
Contributor

Let's talk about this tomorrow. I had originally done something similar but stopped doing so because I thought that scoping the external styles was the desired behavior.

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Talked in person, we agreed that this fix was not ideal long-term but was fine as a temporary fix.

@natemoo-re natemoo-re merged commit fca6407 into main Feb 25, 2022
@natemoo-re natemoo-re deleted the fix-css-import-in-styles branch February 25, 2022 23:04
@github-actions github-actions bot mentioned this pull request Feb 25, 2022
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* fix astro scoping of "@import" inside of style tags

* Create lovely-lies-dress.md

* Update compile.ts

* fix smoke test

* Update package.json
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) pkg: example Related to an example package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 BUG: <style> @import is scoped to the Astro template incorrectly
3 participants