mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🐛 Fix font-selector not autofocusing and remove its inner drop shadow
This commit is contained in:
parent
0b3cff1a9f
commit
669d928bbf
4 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
on-clear (unchecked-get props "clear-action")
|
||||
placeholder (unchecked-get props "placeholder")
|
||||
icon (unchecked-get props "icon")
|
||||
autofocus (unchecked-get props "auto-focus")
|
||||
|
||||
handle-change
|
||||
(mf/use-fn
|
||||
|
@ -52,6 +53,7 @@
|
|||
icon
|
||||
[:input {:on-change handle-change
|
||||
:value value
|
||||
:auto-focus autofocus
|
||||
:placeholder placeholder
|
||||
:on-key-down handle-key-down}]
|
||||
(when (not= "" value)
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
background-color: var(--input-background-color);
|
||||
font-size: $fs-12;
|
||||
color: var(--input-foreground-color);
|
||||
border-radius: $br-8;
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
[:div {:class (stl/css :header)}
|
||||
[:& search-bar {:on-change on-filter-change
|
||||
:value (:term @state)
|
||||
:auto-focus true
|
||||
:placeholder (tr "workspace.options.search-font")}]
|
||||
(when (and recent-fonts show-recent)
|
||||
[:section {:class (stl/css :show-recent)}
|
||||
|
|
|
@ -418,7 +418,6 @@
|
|||
}
|
||||
|
||||
.fonts-list {
|
||||
@include menuShadow;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Add table
Reference in a new issue