mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 10:07:13 +02:00
🐛 Fix combobox dropdown visibility when no options are provided (#9753)
This commit is contained in:
parent
8f48396556
commit
c5644a5fe8
2 changed files with 14 additions and 12 deletions
|
@ -9,6 +9,7 @@
|
|||
[app.common.data.macros :as dm]
|
||||
[app.main.style :as stl])
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.main.ui.ds.controls.shared.options-dropdown :refer [options-dropdown*]]
|
||||
[app.main.ui.ds.foundations.assets.icon :refer [icon* icon-list] :as i]
|
||||
[app.util.array :as array]
|
||||
|
@ -242,6 +243,7 @@
|
|||
:on-change on-input-change
|
||||
:on-key-down on-key-down}]]
|
||||
|
||||
(when (d/not-empty? options)
|
||||
[:> :button {:type "button"
|
||||
:tab-index "-1"
|
||||
:aria-expanded open
|
||||
|
@ -252,7 +254,7 @@
|
|||
:class (stl/css :arrow)
|
||||
:size "s"
|
||||
:aria-hidden true
|
||||
:data-testid "combobox-open-button"}]]]
|
||||
:data-testid "combobox-open-button"}]])]
|
||||
|
||||
(when (and open (seq dropdown-options))
|
||||
[:> options-dropdown* {:on-click on-option-click
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
.focused {
|
||||
--combobox-outline-color: var(--color-accent-primary);
|
||||
--combobox-bg-color: var(--color-background-secondary);
|
||||
--combobox-bg-color: var(--color-background-primary);
|
||||
}
|
||||
|
||||
.arrow {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue