fix: define:vars
scoping for styles (#1632)
This commit is contained in:
parent
d9caef63d8
commit
b5226e68dd
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ export function defineStyleVars(astroId: string, vars: Record<any, any>) {
|
|||
for (const [key, value] of Object.entries(vars)) {
|
||||
output += ` --${key}: ${value};\n`;
|
||||
}
|
||||
return `.${astroId} {${output}}`;
|
||||
return `.astro-${astroId} {${output}}`;
|
||||
}
|
||||
|
||||
export function defineScriptVars(vars: Record<any, any>) {
|
||||
|
|
Loading…
Reference in a new issue