-
Notifications
You must be signed in to change notification settings - Fork 66
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
🐛 BUG: <body>
tag gets removed when it is a child of a component
#935
Comments
I think in a future version of Astro we're not going to allow the |
I do agree, but in cases like this, especially with this kind of reproduction where you don't see multiple body tags, but just one inside the slot template, I think it's a valid shared layout usage, right? or tags to exist unless they are nested inside of Then how can one update those apart from prop drilling? |
<body>
tag gets removed when it is a child of a component
We were able to confirm that this is a specific bug with the JS printer in our compiler rather than a parsing bug, which is good news! Should be a fairly straightforward fix when we have a chance to get to it. I'm going to put it on my shortlist. |
What version of
astro
are you using?2.0.13
Are you using an SSR adapter? If so, which one?
No
What package manager are you using?
npm
What operating system are you using?
Win 10, WSL 2
Describe the Bug
Using nested layouts, the body is missing tailwind classes.
Moving
<body class="bg-black">
to base layout fixes the problem.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-txalzk?file=src/layouts/Home.astro
Participation
The text was updated successfully, but these errors were encountered: