Skip to content

🐛 BUG: <body> tag gets removed when it is a child of a component #935

@Temez1

Description

@Temez1

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.

Metadata

Metadata

Assignees

Labels

- P2: nice to haveNot breaking anything but nice to have (priority)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions