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)}
|
[:div {:class (stl/css :text-align-options)}
|
||||||
[:> text-align-options* common-props]
|
[:> text-align-options* common-props]
|
||||||
[:> grow-options* common-props]
|
[:> grow-options* (mf/spread-props common-props {:ids ids})]
|
||||||
[:> icon-button* {:variant "ghost"
|
[:> icon-button* {:variant "ghost"
|
||||||
:aria-label (tr "labels.options")
|
:aria-label (tr "labels.options")
|
||||||
:data-testid "text-align-options-button"
|
:data-testid "text-align-options-button"
|
||||||
|
|||||||
@ -51,6 +51,7 @@
|
|||||||
ids]}]
|
ids]}]
|
||||||
|
|
||||||
(let [hidden? (:hidden stroke)
|
(let [hidden? (:hidden stroke)
|
||||||
|
hidden? (if (nil? hidden?) false hidden?)
|
||||||
|
|
||||||
token-numeric-inputs
|
token-numeric-inputs
|
||||||
(features/use-feature "tokens/numeric-input")
|
(features/use-feature "tokens/numeric-input")
|
||||||
@ -252,7 +253,7 @@
|
|||||||
:options stroke-alignment-options
|
:options stroke-alignment-options
|
||||||
:variant "icon-only"
|
:variant "icon-only"
|
||||||
:data-testid "stroke.alignment"
|
:data-testid "stroke.alignment"
|
||||||
:disabled hidden?
|
:disabled (if (= :multiple hidden?) true hidden?)
|
||||||
:wrapper-class (stl/css :stroke-align-icon-select)
|
:wrapper-class (stl/css :stroke-align-icon-select)
|
||||||
:on-change on-alignment-change}]
|
:on-change on-alignment-change}]
|
||||||
|
|
||||||
@ -262,7 +263,7 @@
|
|||||||
:wrapper-class (stl/css :stroke-style-icon-select)
|
:wrapper-class (stl/css :stroke-style-icon-select)
|
||||||
:data-testid "stroke.style"
|
:data-testid "stroke.style"
|
||||||
:variant "icon-only"
|
:variant "icon-only"
|
||||||
:disabled hidden?
|
:disabled (if (= :multiple hidden?) true hidden?)
|
||||||
:dropdown-alignment :right
|
:dropdown-alignment :right
|
||||||
:on-change on-style-change}])]
|
:on-change on-style-change}])]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user