mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix grow options (#9097)
* 🐛 Fix grow options * 🐛 Fix props when hidden is nil
This commit is contained in:
parent
b67394199b
commit
c02f0a2bc9
@ -504,7 +504,7 @@
|
||||
|
||||
[:div {:class (stl/css :text-align-options)}
|
||||
[:> text-align-options* common-props]
|
||||
[:> grow-options* common-props]
|
||||
[:> grow-options* (mf/spread-props common-props {:ids ids})]
|
||||
[:> icon-button* {:variant "ghost"
|
||||
:aria-label (tr "labels.options")
|
||||
:data-testid "text-align-options-button"
|
||||
|
||||
@ -51,6 +51,7 @@
|
||||
ids]}]
|
||||
|
||||
(let [hidden? (:hidden stroke)
|
||||
hidden? (if (nil? hidden?) false hidden?)
|
||||
|
||||
token-numeric-inputs
|
||||
(features/use-feature "tokens/numeric-input")
|
||||
@ -252,7 +253,7 @@
|
||||
:options stroke-alignment-options
|
||||
:variant "icon-only"
|
||||
:data-testid "stroke.alignment"
|
||||
:disabled hidden?
|
||||
:disabled (if (= :multiple hidden?) true hidden?)
|
||||
:wrapper-class (stl/css :stroke-align-icon-select)
|
||||
:on-change on-alignment-change}]
|
||||
|
||||
@ -262,7 +263,7 @@
|
||||
:wrapper-class (stl/css :stroke-style-icon-select)
|
||||
:data-testid "stroke.style"
|
||||
:variant "icon-only"
|
||||
:disabled hidden?
|
||||
:disabled (if (= :multiple hidden?) true hidden?)
|
||||
:dropdown-alignment :right
|
||||
:on-change on-style-change}])]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user