File tree 2 files changed +14
-1
lines changed
stories/5-components/Brand
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface AuMainHeaderSignature {
15
15
contactRoute? : string ;
16
16
contactLabel? : string ;
17
17
homeRoute? : string ;
18
+ navigationAriaLabel? : string ;
18
19
};
19
20
Blocks: {
20
21
default: [];
@@ -28,6 +29,11 @@ export default class AuMainHeader extends Component<AuMainHeaderSignature> {
28
29
else return ' Contacteer ons' ;
29
30
}
30
31
32
+ get navigationAriaLabel() {
33
+ if (this .args .navigationAriaLabel ) return this .args .navigationAriaLabel ;
34
+ else return ' Informatie en instellingen' ;
35
+ }
36
+
31
37
@action
32
38
headerLinkFocus() {
33
39
document .querySelector <HTMLElement >(' #main' )?.focus ();
@@ -56,7 +62,7 @@ export default class AuMainHeader extends Component<AuMainHeaderSignature> {
56
62
</a >
57
63
</div >
58
64
<nav
59
- aria-label =" Informatie en instellingen "
65
+ aria-label =" {{ this .navigationAriaLabel }} "
60
66
class =" au-c-main-header__actions"
61
67
>
62
68
<ul class =" au-c-list-horizontal" >
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ export default {
18
18
description :
19
19
'Set the label for the contact link (default: Contacteer ons)' ,
20
20
} ,
21
+ navigationAriaLabel : {
22
+ control : 'text' ,
23
+ description :
24
+ 'Set the aria-label for the navigation (default: Informatie en instellingen)' ,
25
+ } ,
21
26
} ,
22
27
parameters : {
23
28
layout : 'padded' ,
@@ -32,6 +37,7 @@ const Template = (args) => ({
32
37
@homeRoute={{this.homeRoute}}
33
38
@contactRoute={{this.contactRoute}}
34
39
@contactLabel={{this.contactLabel}}
40
+ @navigationAriaLabel={{this.navigationAriaLabel}}
35
41
>
36
42
<AuDropdown @title="Demo dropdown" @alignment="right" role="menu">
37
43
<AuButton @skin="link" @icon="logout" role="menuitem">
@@ -49,4 +55,5 @@ Component.args = {
49
55
homeRoute : 'home' ,
50
56
contactRoute : 'contact' ,
51
57
contactLabel : 'Contacteer ons' ,
58
+ navigationAriaLabel : 'Informatie en instellingen' ,
52
59
} ;
You can’t perform that action at this time.
0 commit comments