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
When having a component with scoped styles and a servercomponent within, the servercomponent's root-element won't have the appropriate scopeId to get targeted by the scoped styles
Additional context
With regular components, scoped styles get applied to immediate children.
As packages/nuxt/src/components/runtime/server-components.ts is the immediate component, it probably has to pass it's scopeId down to the NuxtIsland, using getCurrentInstance().vnode.scopeId
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-mwjswz?file=app.vue
Describe the bug
When having a component with scoped styles and a servercomponent within, the servercomponent's root-element won't have the appropriate
scopeId
to get targeted by the scoped stylesAdditional context
With regular components, scoped styles get applied to immediate children.
As
packages/nuxt/src/components/runtime/server-components.ts
is the immediate component, it probably has to pass it'sscopeId
down to theNuxtIsland
, usinggetCurrentInstance().vnode.scopeId
Logs
No response
The text was updated successfully, but these errors were encountered: