Normally, when setting define:vars on a style tag, an inline style prop is added to elements that sets those CSS vars. If there is an existing style prop, the var definition is concatenated to it. If however the style prop is spread from an object, the values are not concatenated, and instead a duplicate style attribute is applied causing the second attribute to be ignored.
What version of
@astrojs/compiler
are you using?2.10.3
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
Normally, when setting
define:vars
on a style tag, an inlinestyle
prop is added to elements that sets those CSS vars. If there is an existing style prop, the var definition is concatenated to it. If however the style prop is spread from an object, the values are not concatenated, and instead a duplicate style attribute is applied causing the second attribute to be ignored....generates this:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-88jot9?file=src%2Fpages%2Findex.astro&on=stackblitz