bug: ::slotted(...)
selector not working after SSR hydration in scoped: true
component
#6081
Open
3 tasks done
Labels
Prerequisites
Stencil Version
latest
Current Behavior
::slotted(...)
selectors inscoped: true
components are not working properly due to the css selector not having enough specificity.This is due to a regression added via the recent*edit this has been true for a while in Stencilclient-hydrate
re-write which incorrectly applies the internal / scoped className to the slotted elementsExpected Behavior
slotted selectors should be applied to slotted nodes
System Info
No response
Steps to Reproduce
Open https://stackblitz.com/edit/stencil-start-ydmeww :
npm run build && npm run express
In the preview window, click on 'non-shadow-css-slotted'.
Notice the slotted node has the wrong colour.
Code Reproduction URL
https://stackblitz.com/edit/stencil-start-ydmeww
Additional Information
No response
The text was updated successfully, but these errors were encountered: