Arbitrary elements work properly when done in the same file but not when using through slots.
Example
—- Fails —-
—- MyLayout
<div class=“[&>*]:text-center”>
<slot />
</div>
—- MyPage
<MyLayout>
<h1>Does not get centered</h1>
<p>Does not get centered</p>
</MyLayout>
—- DesiredBehavior —-
<div class=“[&>*]:text-center”>
<h1>I am centered</h1>
<p>I am also centered</p>
</div>
The behavior I am going for doesn’t make sense to put inside of the page and would save a lot of duplication.
Is there maybe a more “Astro” way to achieve this that I don’t know?
Thanks in advance!