fix(background): use rect only if bgColor is present

This commit is contained in:
Braks
2022-03-23 06:47:57 +01:00
parent c43b94c932
commit ea93d553b8
@@ -74,7 +74,7 @@ export default {
<template v-else-if="props.variant === BackgroundVariant.Dots">
<circle :cx="background.size" :cy="background.size" :r="background.size" :fill="patternColor" />
</template>
<svg height="100" width="100">
<svg v-if="props.bgColor" height="100" width="100">
<rect width="100%" height="100%" :fill="props.bgColor" />
</svg>
</pattern>