mirror of
https://github.com/penpot/penpot.git
synced 2026-02-26 22:34:11 +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:
@@ -98,7 +98,7 @@
|
||||
[:map {:title "GradientStop"}
|
||||
[:color schema:hex-color]
|
||||
[:opacity {:optional true} [::sm/number {:min 0 :max 1}]]
|
||||
[:offset ::sm/safe-number]]]]])
|
||||
[:offset [::sm/number {:min 0 :max 1}]]]]]])
|
||||
|
||||
(def schema:gradient-color
|
||||
[:map [:gradient schema:gradient]])
|
||||
|
||||
Reference in New Issue
Block a user