Styles contained in SCSS class passed to <Picture /> component's pictureAttributes.class not being applied #10307
Labels
- P2: has workaround
Bug, but has workaround (priority)
feat: assets
Related to the Assets feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When passing
pictureAttributes
prop to Astro's<Picture />
component, the passed class DOES get applied to the generated HTML<picture />
tag, but it seems that the styles are not generate i.e. the class has no styles.WARNING: Minimal reproducible example on StackBlitz works for me only in Chrome. Sometimes the image in the local src/assets/ directory is loaded, some times it is not, but the reported issue is still visible.
What's the expected result?
The class gets applied to the generated
<picture />
tag, AND it contains the correct styles.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qrod97
Participation
The text was updated successfully, but these errors were encountered: