-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
>=2.3.0 something changed in scss processing #7508
Comments
Note, despite the Vite sass quiteDeps: true option I still see these warnings:
But I see these warnings for both |
The biggest styling changes in 2.3.0 is #6816, but I'm not sure how that break things. Maybe a path is incorrectly remapped now? It would be hard for us to debug without a repro. |
Thx @bluwy , I will try to create an isolated example repo over the weekend. |
@bluwy I've created an isolated example repo here: https://github.com/marceloverdijk/astro-7508 |
Thanks! I'm able to reproduce it. Reverting #6816 entirely seems to fix it, but I still don't quite understand how that's triggered. Will try to debug this more. |
Thanks for the feedback @bluwy ! |
@bluwy any chance changes in upcoming Astro 3.0 release will solve this. I'm currently stuck to old version without possibility to update unfortunately. |
Hey @marceloverdijk. Unfortunately I was heads down getting some 3.0 tasks out, so I haven't get a deeper look into this, and I'll be taking some time off soon. So the bug might still exist in 3.0, and if so I'll return to this right away after my break! (Or if someone else takes a look at it) |
OK I will try to upgrade to 3.0 anyway and give it a shot. |
@bluwy FYI: I've updated the example repo to the latest Astro 3.0.1 but the issue is unfortunately still there. |
Thx @bluwy awesome! this is resolved. Looking forward to the next release so I can upgrade to the latest. |
I can confirm this works with latest |
Awesome! Thanks for the update. |
Hi @bluwy despite the original issue fixed, I see some other issues now. With 2.3.1 a page is generated like: but with 3.1.2: See the spacing between the badges in the top left of the cards. This is producible with the example repo mentioned earlier. And in the actual app I'm working with I see now more of these small differences. I'm now wondering if I'm doing something wrong in my project setup... |
I can see there's duplicated CSS in 3.0 for some reason, but the styles are still the same and I can't tell what is causing the missing space. In v2 it seems to be coming from the inline block natural spacing, but it's collapsed in 3.0 for some reason. |
Yes I also noticed (partially) duplicated css. E.g. I have a span like:
and the generated css contains: L28048:
L28116:
L34947:
The So the (partially) duplicates css is causing an issue here. 1 option I see is to compile the scss to css myself, and include that file in my project. |
I'm seeing the Vite injected styles and Astro injected styles are strangely conflicting too. Would be great if you can open another issue for this 🙏 |
What version of
astro
are you using?>=2.3.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
I'm using official getbootstrap.com themes in a Astro side by using the scss provided by the theme.
That always worked except when upgrading from
2.2.3
to2.3.0
after it was released.II notices some strange css behaviour; back then in the nouislider component.
Anyway I thought it was something minor and decided to wait for an upgrade.
I now switched to another getbootstrap.com theme (using `2.2.3) and the theme works as expected.
Decided to update Astro to latest
2.7.1
and I see some unexpected styling issues still unfortunately.E.g. this how it's rendered with
2.7.1
Note the position of the 2nd dropdown, and also the height is different.
What's the expected result?
But with
2.2.3
it is rendered as expected:At the moment I'm unable to provide a reproducible example but if needed I will try to provide something.
I'm wondering if there changed something from
2.3.0
in terms of css/scss processingMy
astro.config.mjs
looks like:and
postcss.config.js
:Link to Minimal Reproducible Example
...
Participation
The text was updated successfully, but these errors were encountered: