diff --git a/frontend/src/app/util/code_gen/style_css_values.cljs b/frontend/src/app/util/code_gen/style_css_values.cljs index 0ed0d7608..2b4586c8a 100644 --- a/frontend/src/app/util/code_gen/style_css_values.cljs +++ b/frontend/src/app/util/code_gen/style_css_values.cljs @@ -146,8 +146,9 @@ (defmethod get-value :background [_ {:keys [fills] :as shape} _] - (when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape))) - (fill->color (first fills)))) + (let [single-fill? (= (count fills) 1)] + (when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape)) single-fill?) + (fill->color (first fills))))) (defn get-stroke-data [stroke]