@@ -13,7 +13,9 @@ export interface AuMainHeaderSignature {
13
13
appTitle: string ;
14
14
brandLink? : string ;
15
15
contactRoute? : string ;
16
+ contactLabel? : string ;
16
17
homeRoute? : string ;
18
+ navigationAriaLabel? : string ;
17
19
};
18
20
Blocks: {
19
21
default: [];
@@ -22,6 +24,16 @@ export interface AuMainHeaderSignature {
22
24
}
23
25
24
26
export default class AuMainHeader extends Component <AuMainHeaderSignature > {
27
+ get contactLabel() {
28
+ if (this .args .contactLabel ) return this .args .contactLabel ;
29
+ else return ' Contacteer ons' ;
30
+ }
31
+
32
+ get navigationAriaLabel() {
33
+ if (this .args .navigationAriaLabel ) return this .args .navigationAriaLabel ;
34
+ else return ' Informatie en instellingen' ;
35
+ }
36
+
25
37
@action
26
38
headerLinkFocus() {
27
39
document .querySelector <HTMLElement >(' #main' )?.focus ();
@@ -49,7 +61,10 @@ export default class AuMainHeader extends Component<AuMainHeaderSignature> {
49
61
Naar de hoofdinhoud
50
62
</a >
51
63
</div >
52
- <nav class =" au-c-main-header__actions" >
64
+ <nav
65
+ aria-label ={{this .navigationAriaLabel }}
66
+ class =" au-c-main-header__actions"
67
+ >
53
68
<ul class =" au-c-list-horizontal" >
54
69
{{#if @ contactRoute }}
55
70
<li class =" au-c-list-horizontal__item" >
@@ -58,7 +73,7 @@ export default class AuMainHeader extends Component<AuMainHeaderSignature> {
58
73
@ skin =" secondary"
59
74
@ icon ={{QuestionCircleIcon }}
60
75
>
61
- Contacteer ons
76
+ {{ this .contactLabel }}
62
77
</AuLink >
63
78
</li >
64
79
{{/if }}
@@ -79,12 +94,7 @@ class NavigationNarrator extends Component {
79
94
}
80
95
81
96
<template >
82
- <div
83
- aria-live =" assertive"
84
- aria-controls =" main"
85
- aria-atomic =" true"
86
- aria-relevant =" all"
87
- >
97
+ <div aria-live =" assertive" aria-atomic =" true" aria-relevant =" all" >
88
98
<span class =" au-u-hidden-visually" >
89
99
{{this .activeRoute }}
90
100
</span >
0 commit comments