🐛 Fix opacity value when token is broken (#8239)

This commit is contained in:
Eva Marco 2026-01-29 10:27:25 +01:00 committed by GitHub
parent 32454f5959
commit b8fdbd1ef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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