From f13193b322345b46d349757dd42fd723f3c50a0c Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 7 Nov 2022 07:43:51 +0100 Subject: [PATCH] fix(language-switcher): enhancing the possible languages (#147) --- .../language-switcher/language-switcher.scss | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/_patterns/02-components/language-switcher/language-switcher.scss b/source/_patterns/02-components/language-switcher/language-switcher.scss index 4a49a2aff7..86dbf5faad 100644 --- a/source/_patterns/02-components/language-switcher/language-switcher.scss +++ b/source/_patterns/02-components/language-switcher/language-switcher.scss @@ -34,7 +34,23 @@ // TODO: This is an enhancement for more languages, but obviously doesn't scale that nicely and would need some rework &:not([aria-selected="true"]) ~ li:not([aria-selected="true"]) { - top: to-rem($pxValue: 108); + top: to-rem($pxValue: 54 * 2); + + & ~ li:not([aria-selected="true"]) { + top: to-rem($pxValue: 54 * 3); + + & ~ li:not([aria-selected="true"]) { + top: to-rem($pxValue: 54 * 4); + + & ~ li:not([aria-selected="true"]) { + top: to-rem($pxValue: 54 * 5); + + & ~ li:not([aria-selected="true"]) { + top: to-rem($pxValue: 54 * 6); + } + } + } + } } @media screen and (min-width: 1024px) { top: to-rem($pxValue: 56);