File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
source/_patterns/02-components/language-switcher Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 2
2
<li >
3
3
{{> elements-link href =' #' hreflang =' en' value =' EN' title =' English language' rel =' alternate' }}
4
4
</li >
5
- <li aria-current = " page " >
6
- {{> elements-link href =' #' hreflang =' de' value =' DE' title =' Deutsche Sprache' rel =' bookmark' }}
5
+ <li >
6
+ {{> elements-link href =' #' hreflang =' de' value =' DE' title =' Deutsche Sprache' rel =' bookmark' current = " page " }}
7
7
</li >
8
8
<li >
9
9
{{> elements-link href =' #' hreflang =' fr' value =' FR' title =' Langue française' rel =' alternate' }}
Original file line number Diff line number Diff line change 10
10
& :hover ,
11
11
& :focus {
12
12
li {
13
- & :not ([aria-current ] ) {
13
+ & :not (:has ( [aria-current = " page " ]) ) {
14
14
visibility : visible ;
15
15
}
16
16
33
33
z-index : $z-index-rea-header-cmp-language-switcher-li ; // * TODO: possibly rework variable naming
34
34
35
35
// TODO: This is an enhancement for more languages, but obviously doesn't scale that nicely and would need some rework
36
- & :not ([aria-current = " page" ]) ~ li :not ([aria-current = " page" ]) {
36
+ & :not (:has ([aria-current = " page" ]))
37
+ ~ li :not (:has ([aria-current = " page" ])) {
37
38
top : to-rem ($pxValue : 54 * 2 );
38
39
39
- & ~ li :not ([aria-current = " page" ]) {
40
+ & ~ li :not (:has ( [aria-current = " page" ]) ) {
40
41
top : to-rem ($pxValue : 54 * 3 );
41
42
42
- & ~ li :not ([aria-current = " page" ]) {
43
+ & ~ li :not (:has ( [aria-current = " page" ]) ) {
43
44
top : to-rem ($pxValue : 54 * 4 );
44
45
45
- & ~ li :not ([aria-current = " page" ]) {
46
+ & ~ li :not (:has ( [aria-current = " page" ]) ) {
46
47
top : to-rem ($pxValue : 54 * 5 );
47
48
48
- & ~ li :not ([aria-current = " page" ]) {
49
+ & ~ li :not (:has ( [aria-current = " page" ]) ) {
49
50
top : to-rem ($pxValue : 54 * 6 );
50
51
}
51
52
}
62
63
text-decoration : none ;
63
64
}
64
65
65
- & :not ([aria-current ] ) {
66
+ & :not (:has ( [aria-current = " page " ]) ) {
66
67
visibility : hidden ;
67
68
68
69
.elm-link {
77
78
}
78
79
}
79
80
80
- & [aria-current ] {
81
+ & :has ( [aria-current ]) {
81
82
position : initial ;
82
83
83
84
.elm-link {
You can’t perform that action at this time.
0 commit comments