Merge pull request #4094 from penpot/ladybenko-6828-fix-text-selection

🐛 Fix text options & font selector in design tab
This commit is contained in:
Andrey Antukh 2024-02-02 08:34:31 +01:00 committed by GitHub
commit 60fbcc3e4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 35 deletions

View file

@ -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)

View file

@ -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;
}