🐛 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
2 changed files with 1 additions and 4 deletions

View File

@@ -674,7 +674,7 @@
token-value (or (get token :resolved-value)
(or (mf/ref-val last-value*)
(fmt/format-number value)))
token-value (if (= name :opacity)
token-value (if (and (some? id) (= name :opacity))
(* 100 token-value)
token-value)]
(mf/spread-props props

View File

@@ -250,10 +250,7 @@
:on-pointer-enter-option handle-blend-mode-enter
:on-pointer-leave-option handle-blend-mode-leave}]]
(if token-numeric-inputs
[:> numeric-input-wrapper*
{:on-change on-opacity-change
:on-detach on-detach-token