File tree Expand file tree Collapse file tree 8 files changed +24
-23
lines changed Expand file tree Collapse file tree 8 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export function LandmarkShortcuts({ shortcuts }: ILandmarkShortcutsProps) {
27
27
} ;
28
28
29
29
return (
30
- < nav aria-label = 'Til hovedinnhold' >
30
+ < div >
31
31
{ shortcuts . map ( ( shortcut ) => (
32
32
< button
33
33
key = { shortcut . id }
@@ -38,6 +38,6 @@ export function LandmarkShortcuts({ shortcuts }: ILandmarkShortcutsProps) {
38
38
{ shortcut . text }
39
39
</ button >
40
40
) ) }
41
- </ nav >
41
+ </ div >
42
42
) ;
43
43
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ describe('NavBar', () => {
31
31
await render ( {
32
32
hideCloseButton : true ,
33
33
} ) ;
34
- screen . getByRole ( 'navigation' , { name : / A p p n a v i g a s j o n / i } ) ;
34
+ screen . getByRole ( 'navigation' , { name : / O v e r o r d n e t / i } ) ;
35
35
} ) ;
36
36
37
37
it ( 'should render close button' , async ( ) => {
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ export const InstantiateHeader = ({ profile }: InstantiateHeaderProps) => {
22
22
className = { classes . appBarWrapper }
23
23
data-testid = 'InstantiateHeader'
24
24
>
25
- < LandmarkShortcuts
26
- shortcuts = { [
27
- {
28
- id : 'main-content' ,
29
- text : < Lang id = 'navigation.to_main_content' /> ,
30
- } ,
31
- ] }
32
- />
33
25
< header className = { classes . appBar } >
26
+ < LandmarkShortcuts
27
+ shortcuts = { [
28
+ {
29
+ id : 'main-content' ,
30
+ text : < Lang id = 'navigation.to_main_content' /> ,
31
+ } ,
32
+ ] }
33
+ />
34
34
< AltinnLogo
35
35
color = { LogoColor . blueDark }
36
36
className = { classes . logo }
Original file line number Diff line number Diff line change 1
- .sidebar-container {
1
+ .sidebarContainer {
2
2
--max-sidebar-width : 320px ;
3
3
4
4
position : absolute;
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ export function SideBarNavigation() {
16
16
}
17
17
18
18
return (
19
- < aside className = { classes . sidebarContainer } >
19
+ < nav
20
+ className = { classes . sidebarContainer }
21
+ aria-labelledby = { appNavigationHeadingId }
22
+ >
20
23
< AppNavigationHeading />
21
- < nav aria-labelledby = { appNavigationHeadingId } >
22
- < AppNavigation />
23
- </ nav >
24
- </ aside >
24
+ < AppNavigation />
25
+ </ nav >
25
26
) ;
26
27
}
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ export function en() {
114
114
'form_filler.person_lookup_name' : 'name' ,
115
115
'form_filler.organisation_lookup_orgnr' : 'organisation number' ,
116
116
'form_filler.organisation_lookup_name' : 'organisation name' ,
117
- 'navigation.main' : 'App navigation ' ,
118
- 'navigation.form' : 'Form navigation ' ,
117
+ 'navigation.main' : 'Primary ' ,
118
+ 'navigation.form' : 'Form pages ' ,
119
119
'navigation.to_main_content' : 'Go to main content' ,
120
120
'navigation.go_to_task' : 'Navigate to {0}' ,
121
121
'navigation.form_pages' : 'Form pages' ,
Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ export function nb() {
115
115
'form_filler.person_lookup_name' : 'navn' ,
116
116
'form_filler.organisation_lookup_orgnr' : 'organisasjonsnummer' ,
117
117
'form_filler.organisation_lookup_name' : 'organisasjonsnavn' ,
118
- 'navigation.main' : 'Appnavigasjon ' ,
119
- 'navigation.form' : 'Skjemanavigasjon ' ,
118
+ 'navigation.main' : 'Overordnet ' ,
119
+ 'navigation.form' : 'Skjemasider ' ,
120
120
'navigation.to_main_content' : 'Hopp til hovedinnholdet' ,
121
121
'navigation.go_to_task' : 'Gå til {0}' ,
122
122
'navigation.form_pages' : 'Skjemasider' ,
Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ export function nn() {
115
115
'form_filler.person_lookup_name' : 'namn' ,
116
116
'form_filler.organisation_lookup_orgnr' : 'organisasjonsnummer' ,
117
117
'form_filler.organisation_lookup_name' : 'organisasjonsnamn' ,
118
- 'navigation.main' : 'Appnavigasjon ' ,
119
- 'navigation.form' : 'Skjemanavigasjon ' ,
118
+ 'navigation.main' : 'Overordnet ' ,
119
+ 'navigation.form' : 'Skjemasider ' ,
120
120
'navigation.to_main_content' : 'Hopp til hovedinnholdet' ,
121
121
'navigation.go_to_task' : 'Gå til {0}' ,
122
122
'navigation.form_pages' : 'Skjemasider' ,
You can’t perform that action at this time.
0 commit comments