compiler
compiler copied to clipboard
🐛 BUG: `<body>` tag gets removed when it is a child of a component
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.
<Base>
<body class="bg-black">
<slot />
</body>
</Base>
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
- [ ] I am willing to submit a pull request for this issue.