Skip to content

Commit bdd081a

Browse files
authored
Merge pull request #974 from ecomfe/fix/svg-bg-opacity
fix(svg): use kebab-cased name for `fill-opacity` attribute
2 parents b952ca1 + fc82d6a commit bdd081a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svg/Painter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function createBackgroundVNode(
393393
else {
394394
const { color, opacity } = normalizeColor(backgroundColor);
395395
bgVNode.attrs.fill = color;
396-
opacity < 1 && (bgVNode.attrs.fillOpacity = opacity);
396+
opacity < 1 && (bgVNode.attrs['fill-opacity'] = opacity);
397397
}
398398
}
399399
return bgVNode;

0 commit comments

Comments
 (0)