Skip to content

Commit fc82d6a

Browse files
committed
fix(svg): use kebab-cased name for fill-opacity attribute
1 parent b952ca1 commit fc82d6a

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)