mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ Add stricter validation for gradient stop offset
It should be from a number from 0 to 1 inclusive
This commit is contained in:
parent
5c225a51ce
commit
91807151ba
@ -98,7 +98,7 @@
|
|||||||
[:map {:title "GradientStop"}
|
[:map {:title "GradientStop"}
|
||||||
[:color schema:hex-color]
|
[:color schema:hex-color]
|
||||||
[:opacity {:optional true} [::sm/number {:min 0 :max 1}]]
|
[:opacity {:optional true} [::sm/number {:min 0 :max 1}]]
|
||||||
[:offset ::sm/safe-number]]]]])
|
[:offset [::sm/number {:min 0 :max 1}]]]]]])
|
||||||
|
|
||||||
(def schema:gradient-color
|
(def schema:gradient-color
|
||||||
[:map [:gradient schema:gradient]])
|
[:map [:gradient schema:gradient]])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user