From 94bf79e41426767caec88d9ad6067a75b30bdbd6 Mon Sep 17 00:00:00 2001 From: Mehdi Benadda Date: Fri, 28 Aug 2020 17:16:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20add=20a=20chevron=20ic?= =?UTF-8?q?on=20to=20the=20language=20picker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our language picker looks just like a link or a regular blob of text, in bold. We need to give users a hint that they can click it to open a menu. This is why we're adding a chevron icon to our html sprite and placing it next to the text of the language picker button. --- src/frontend/js/components/LanguageSelector/_styles.scss | 6 ++++++ src/frontend/js/components/LanguageSelector/index.tsx | 7 +++++++ src/frontend/scss/components/_footer.scss | 4 ++++ src/richie/apps/core/templates/richie/icons.html | 4 ++++ 4 files changed, 21 insertions(+) diff --git a/src/frontend/js/components/LanguageSelector/_styles.scss b/src/frontend/js/components/LanguageSelector/_styles.scss index 0c5204069e..997d1a3059 100644 --- a/src/frontend/js/components/LanguageSelector/_styles.scss +++ b/src/frontend/js/components/LanguageSelector/_styles.scss @@ -8,6 +8,12 @@ font-size: 1rem; font-weight: 700; color: inherit; + + &__icon { + width: 1rem; + height: 1rem; + margin-left: 0.5rem; + } } &__list { diff --git a/src/frontend/js/components/LanguageSelector/index.tsx b/src/frontend/js/components/LanguageSelector/index.tsx index 75145ec583..568e9239e3 100644 --- a/src/frontend/js/components/LanguageSelector/index.tsx +++ b/src/frontend/js/components/LanguageSelector/index.tsx @@ -67,6 +67,13 @@ export const LanguageSelector: React.FC = ({