Skip to content

Commit f13193b

Browse files
authored
fix(language-switcher): enhancing the possible languages (#147)
1 parent f35721e commit f13193b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

source/_patterns/02-components/language-switcher/language-switcher.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,23 @@
3434

3535
// TODO: This is an enhancement for more languages, but obviously doesn't scale that nicely and would need some rework
3636
&:not([aria-selected="true"]) ~ li:not([aria-selected="true"]) {
37-
top: to-rem($pxValue: 108);
37+
top: to-rem($pxValue: 54 * 2);
38+
39+
& ~ li:not([aria-selected="true"]) {
40+
top: to-rem($pxValue: 54 * 3);
41+
42+
& ~ li:not([aria-selected="true"]) {
43+
top: to-rem($pxValue: 54 * 4);
44+
45+
& ~ li:not([aria-selected="true"]) {
46+
top: to-rem($pxValue: 54 * 5);
47+
48+
& ~ li:not([aria-selected="true"]) {
49+
top: to-rem($pxValue: 54 * 6);
50+
}
51+
}
52+
}
53+
}
3854
}
3955
@media screen and (min-width: 1024px) {
4056
top: to-rem($pxValue: 56);

0 commit comments

Comments
 (0)