From eaaeef23355a8e70befc5e3feb5eb5b947a42d75 Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Sat, 22 Apr 2023 18:11:48 +0530 Subject: [PATCH] :tada: Update Typography palette order --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/textpalette.cljs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c72e2f6664..636c7529a9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) +- Update Typography palette order #3156 (by @akshay-gupta7) [#3156](https://github.com/penpot/penpot/pull/3156) ## 1.18.3 diff --git a/frontend/src/app/main/ui/workspace/textpalette.cljs b/frontend/src/app/main/ui/workspace/textpalette.cljs index fac5ce536a..111cf09a4b 100644 --- a/frontend/src/app/main/ui/workspace/textpalette.cljs +++ b/frontend/src/app/main/ui/workspace/textpalette.cljs @@ -68,8 +68,8 @@ current-typographies (case @selected :recent [] - :file (vals file-typographies) - (vals (get-in shared-libs [@selected :data :typographies]))) + :file (sort-by #(str/lower (:name %)) (vals file-typographies)) + (sort-by #(str/lower (:name %)) (vals (get-in shared-libs [@selected :data :typographies])))) container (mf/use-ref nil)