From 8bb2f20eae10fcd110ff998d71d493b0e3a24528 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 7 Jun 2022 12:37:34 +0200 Subject: [PATCH] :bug: Fix problem with shadow spec --- common/src/app/common/spec/shadow.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/spec/shadow.cljc b/common/src/app/common/spec/shadow.cljc index 4c28dc761..5b4bd553a 100644 --- a/common/src/app/common/spec/shadow.cljc +++ b/common/src/app/common/spec/shadow.cljc @@ -13,7 +13,7 @@ ;;; SHADOW EFFECT -(s/def ::id uuid?) +(s/def ::id (s/nilable uuid?)) (s/def ::style #{:drop-shadow :inner-shadow}) (s/def ::offset-x ::us/safe-number) (s/def ::offset-y ::us/safe-number) @@ -28,7 +28,7 @@ (s/def ::file-id (s/nilable uuid?)) (s/def ::ref-id (s/nilable uuid?)) -(s/def ::shadow-color +(s/def :shadow/color (s/keys :opt-un [::color ::opacity ::gradient @@ -38,7 +38,7 @@ (s/def ::shadow-props (s/keys :req-un [:internal.shadow/id :internal.shadow/style - ::shadow-color + :shadow/color :internal.shadow/offset-x :internal.shadow/offset-y :internal.shadow/blur