mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 05:58:47 +00:00
🐛 Fix opacity value when token is broken (#8239)
This commit is contained in:
parent
32454f5959
commit
b8fdbd1ef8
@ -674,7 +674,7 @@
|
|||||||
token-value (or (get token :resolved-value)
|
token-value (or (get token :resolved-value)
|
||||||
(or (mf/ref-val last-value*)
|
(or (mf/ref-val last-value*)
|
||||||
(fmt/format-number value)))
|
(fmt/format-number value)))
|
||||||
token-value (if (= name :opacity)
|
token-value (if (and (some? id) (= name :opacity))
|
||||||
(* 100 token-value)
|
(* 100 token-value)
|
||||||
token-value)]
|
token-value)]
|
||||||
(mf/spread-props props
|
(mf/spread-props props
|
||||||
|
|||||||
@ -250,10 +250,7 @@
|
|||||||
:on-pointer-enter-option handle-blend-mode-enter
|
:on-pointer-enter-option handle-blend-mode-enter
|
||||||
:on-pointer-leave-option handle-blend-mode-leave}]]
|
:on-pointer-leave-option handle-blend-mode-leave}]]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(if token-numeric-inputs
|
(if token-numeric-inputs
|
||||||
|
|
||||||
[:> numeric-input-wrapper*
|
[:> numeric-input-wrapper*
|
||||||
{:on-change on-opacity-change
|
{:on-change on-opacity-change
|
||||||
:on-detach on-detach-token
|
:on-detach on-detach-token
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user