diff --git a/CHANGES.md b/CHANGES.md index 4b266063b..fd72c0142 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ - Fix residual stroke on imported svg [Taiga #2125](https://tree.taiga.io/project/penpot/issue/2125) - Add links for terms of service and privacy policy in register checkbox [Taiga #2020](https://tree.taiga.io/project/penpot/issue/2020) - Allow three character hex and web colors in color picker hex input [#1184](https://github.com/penpot/penpot/issues/1184) +- Allow lowercase search for fonts [#1180](https://github.com/penpot/penpot/issues/1180) ### :arrow_up: Deps updates ### :boom: Breaking changes diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs index 45f313c73..b51955e96 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs @@ -74,7 +74,8 @@ (defn filter-fonts [{:keys [term backends]} fonts] - (let [xform (cond-> (map identity) + (let [term (str/lower term) + xform (cond-> (map identity) (seq term) (comp (filter #(str/includes? (str/lower (:name %)) term))) @@ -175,7 +176,7 @@ [:div.font-selector [:div.font-selector-dropdown [:header - [:input {:placeholder "Search font" + [:input {:placeholder (tr "workspace.options.search-font") :value (:term @state) :ref input :spell-check false diff --git a/frontend/translations/en.po b/frontend/translations/en.po index 8f553c95e..0de44e7a5 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -3183,3 +3183,6 @@ msgstr "Flatten" msgid "workspace.shape.menu.transform-to-path" msgstr "Transform to path" + +msgid "workspace.options.search-font" +msgstr "Search font" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index b5166b488..873264608 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -3071,3 +3071,6 @@ msgstr "Aplanar" msgid "workspace.shape.menu.transform-to-path" msgstr "Convertir en vector" + +msgid "workspace.options.search-font" +msgstr "Buscar fuente"