mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 17:36:12 +02:00
Merge pull request #4094 from penpot/ladybenko-6828-fix-text-selection
🐛 Fix text options & font selector in design tab
This commit is contained in:
commit
60fbcc3e4b
6 changed files with 46 additions and 35 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue