Closed Grohotun closed 6 months ago
You need to pass along the data-astro-cid-*
prop in order for the scoped styles to work on the element. If you're using scopeStyleStrategy: 'class'
, you need to rename cl
as class
for the scoped class to properly apply to the class
.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If image is loaded by external component you can't simply apply scoped styles, only global styles are working (or add styles directly into loaded component)
What's the expected result?
styles to be applied from main.astro
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/Grohotun/withastro-astro-8gguzy?file=src/pages/index.astro
Participation