mirror of
https://github.com/penpot/penpot.git
synced 2025-07-08 21:27:16 +02: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")
|
on-clear (unchecked-get props "clear-action")
|
||||||
placeholder (unchecked-get props "placeholder")
|
placeholder (unchecked-get props "placeholder")
|
||||||
icon (unchecked-get props "icon")
|
icon (unchecked-get props "icon")
|
||||||
|
autofocus (unchecked-get props "auto-focus")
|
||||||
|
|
||||||
handle-change
|
handle-change
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
@ -52,6 +53,7 @@
|
||||||
icon
|
icon
|
||||||
[:input {:on-change handle-change
|
[:input {:on-change handle-change
|
||||||
:value value
|
:value value
|
||||||
|
:auto-focus autofocus
|
||||||
:placeholder placeholder
|
:placeholder placeholder
|
||||||
:on-key-down handle-key-down}]
|
:on-key-down handle-key-down}]
|
||||||
(when (not= "" value)
|
(when (not= "" value)
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
background-color: var(--input-background-color);
|
background-color: var(--input-background-color);
|
||||||
font-size: $fs-12;
|
font-size: $fs-12;
|
||||||
color: var(--input-foreground-color);
|
color: var(--input-foreground-color);
|
||||||
|
border-radius: $br-8;
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
[:div {:class (stl/css :header)}
|
[:div {:class (stl/css :header)}
|
||||||
[:& search-bar {:on-change on-filter-change
|
[:& search-bar {:on-change on-filter-change
|
||||||
:value (:term @state)
|
:value (:term @state)
|
||||||
|
:auto-focus true
|
||||||
:placeholder (tr "workspace.options.search-font")}]
|
:placeholder (tr "workspace.options.search-font")}]
|
||||||
(when (and recent-fonts show-recent)
|
(when (and recent-fonts show-recent)
|
||||||
[:section {:class (stl/css :show-recent)}
|
[:section {:class (stl/css :show-recent)}
|
||||||
|
|
|
@ -418,7 +418,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.fonts-list {
|
.fonts-list {
|
||||||
@include menuShadow;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue