Skip to content

Commit 017114a

Browse files
committed
fix(language switcher): added possibility for further entries
1 parent f44c861 commit 017114a

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"prepare": "husky"
4848
},
4949
"validate-branch-name": {
50-
"pattern": "((dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf|[0-9]+)\\-[a-zA-Z0-9\\-]+)$)",
50+
"pattern": "((dependabot-)|^((version|test|feat|fix|chore|docs|refactor|style|ci|perf|[0-9]+)\\-[a-zA-Z0-9\\-]+)$)",
5151
"errorMsg": "There is something wrong with your branch name. You should rename your branch to a valid name and try again. See the Pattern below."
5252
},
5353
"keywords": [],

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,38 @@
5757
[aria-selected="true"]
5858
) {
5959
top: to-rem($pxValue: 54 * 6);
60+
61+
&
62+
~ li:not(
63+
[aria-current="page"],
64+
[aria-selected="true"]
65+
) {
66+
top: to-rem($pxValue: 54 * 7);
67+
68+
&
69+
~ li:not(
70+
[aria-current="page"],
71+
[aria-selected="true"]
72+
) {
73+
top: to-rem($pxValue: 54 * 8);
74+
75+
&
76+
~ li:not(
77+
[aria-current="page"],
78+
[aria-selected="true"]
79+
) {
80+
top: to-rem($pxValue: 54 * 9);
81+
82+
&
83+
~ li:not(
84+
[aria-current="page"],
85+
[aria-selected="true"]
86+
) {
87+
top: to-rem($pxValue: 54 * 10);
88+
}
89+
}
90+
}
91+
}
6092
}
6193
}
6294
}

0 commit comments

Comments
 (0)