From 5453b49ac63b466afbe51ca888e25059af2260fc Mon Sep 17 00:00:00 2001 From: "noa.santo" Date: Mon, 15 Jan 2024 14:01:02 +0100 Subject: [PATCH 1/8] feat: increase language switch text size on mobile --- src/components/layout/header/language-switch.tsx | 4 ++++ src/components/typography.ts | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/layout/header/language-switch.tsx b/src/components/layout/header/language-switch.tsx index a71c0ff5b..77eb2cb1c 100644 --- a/src/components/layout/header/language-switch.tsx +++ b/src/components/layout/header/language-switch.tsx @@ -31,6 +31,10 @@ const StyledSelection = styled.select` appearance: none; cursor: pointer; + + @media (max-width: 768px) { + ${TextStyles.menuMetaMobile} + } `; export const StyledChevron = styled(Icon)<{ isEnglish: boolean }>` diff --git a/src/components/typography.ts b/src/components/typography.ts index 889fe65b6..54bb778a7 100644 --- a/src/components/typography.ts +++ b/src/components/typography.ts @@ -123,12 +123,17 @@ export const TextStyles = { letter-spacing: -0.01em; `, - // MenuLaguage has the exact same configuration as MenuMeta + // MenuLanguage has the exact same configuration as MenuMeta menuMeta: css` font-weight: bold; font-size: 14px; line-height: 110%; `, + menuMetaMobile: css` + font-weight: bold; + font-size: 18px; + line-height: 110%; + `, label: css` font-weight: normal; font-size: 13px; From 8b78e75a62b5af2bf62917a8cd3f9570005cbd82 Mon Sep 17 00:00:00 2001 From: "noa.santo" Date: Mon, 15 Jan 2024 14:02:13 +0100 Subject: [PATCH 2/8] feat: add aria-label to language switcher --- src/components/layout/header/language-switch.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/layout/header/language-switch.tsx b/src/components/layout/header/language-switch.tsx index 77eb2cb1c..f267a39db 100644 --- a/src/components/layout/header/language-switch.tsx +++ b/src/components/layout/header/language-switch.tsx @@ -49,13 +49,14 @@ export const LanguageSwitch = ({ const { languages, language, t, changeLanguage } = useI18next(); return ( - + { changeLanguage(event.target.value); }} value={language} + aria-label={t('navigation.language-aria')} > {languages.map((languageOfLink) => (