You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Styling discrepancies between astro dev and astro build in 5.4.3 #13416
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Summary
There are discrepancies between component styling in the output of astro dev (first screenshot) and astro build && astro preview (second screenshot)
Some key differences include:
Smaller search bar (not a big deal)
Different colored code blocks (big deal because it fails a11y checks)
This bug seems to be isolated to astro 5.4.3, because when I downgrade to 5.4.2 the outputs are the same.
The bump to astro 5.4.3 also seems to introduce some vite warnings in the build output which may be contributing to these styling discrepancies (third screenshot)
I'm perma-linking to the commit where the bug was introduced in my repo. I'll put together a simpler version re-creating the issue later today when I have more time!
What's the expected result?
The output of astro dev and astro build && astro preview should be the same
Activity
astro devandastro buildstarlight#2960 as a duplicate of this issueematipico commentedon Mar 13, 2025
Hey @widal001 , sorry about the inconvenience. Can you test this preview release and see if that fixes your issue?
ematipico commentedon Mar 13, 2025
I got confirmation from @HiDeoo that the preview release fixes the bug