Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
17f90c3c
Commit
17f90c3c
authored
3 years ago
by
Henrik Askjer
Browse files
Options
Downloads
Patches
Plain Diff
accessibility links in search field
parent
4d8e54b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Autocomplete.vue
+44
-31
44 additions, 31 deletions
src/components/Autocomplete.vue
src/components/Header.vue
+1
-1
1 addition, 1 deletion
src/components/Header.vue
with
45 additions
and
32 deletions
src/components/Autocomplete.vue
+
44
−
31
View file @
17f90c3c
...
...
@@ -25,7 +25,35 @@
:dense="$vuetify.breakpoint.mobile"
>
<template
v-slot:append
>
<a
class=
"accessibility_link"
href=
"#main_content"
>
Gå videre til hovedinnholdet
</a>
<a
href=
"#menu_title"
class=
"accessibility_link"
@
click=
"menuDialog=true"
:aria-label=
"$t('menu.title')"
aria-haspopup=
"true"
:aria-expanded=
"menuDialog"
>
Åpne hovedmeny
</a>
<v-dialog
v-model=
"menuDialog"
>
<v-toolbar
dense
dark
color=
"primary"
>
<v-toolbar-title
id=
"menu_title"
>
{{
$t
(
'
menu.title
'
)
}}
</v-toolbar-title><v-spacer></v-spacer>
<v-toolbar-items><v-divider
vertical
/>
<v-btn
@
click=
"menuDialog=false"
dark
text
>
{{
$t
(
"
close
"
)
}}
<v-icon
right
>
close
</v-icon>
</v-btn>
</v-toolbar-items>
</v-toolbar>
<Menu
@
close=
"menuDialog=false"
/>
</v-dialog>
<v-menu
allowOverflow:
true
offsetY
>
<template
v-slot:activator=
"
{ on, attrs }">
<v-btn
min-width=
"0px"
...
...
@@ -44,38 +72,8 @@
<
/v-list-item
>
<
/v-list
>
<
/v-menu
>
<
v
-
dialog
max
-
width
=
"
1200
"
width
=
"
1200
"
v
-
model
=
"
menuDialog
"
:
close
-
on
-
content
-
click
=
"
false
"
>
<
template
v
-
slot
:
activator
=
"
{ on, attrs
}
"
>
<
v
-
btn
@
click
.
native
=
"
items=[]
"
:
aria
-
label
=
"
$t('menu.title')
"
v
-
bind
=
"
attrs
"
v
-
on
=
"
on
"
min
-
width
=
"
0px
"
class
= "
search
-
field
-
button
"
plain
depressed
color =
"
primary
"
text>
<span v-if=
"
!
$vuetify
.
breakpoint
.
mobile
"
></span><v-icon>more_vert</v-icon></v-btn>
</template>
<v-toolbar dense dark color=
"
primary
"
>
<v-toolbar-title>{{$t('menu.title')
}}
</v-toolbar-title><v-spacer></v-spacer>
<v-toolbar-items><v-divider vertical/>
<v-btn
@click=
"
menuDialog
=
false
"
dark
text
>{{$t(
"
close
"
)
}}
<v-icon right>close</v-icon>
</v-btn>
</v-toolbar-items>
</v-toolbar>
<Menu @close=
"
menuDialog
=
false
"
/>
</v-dialog>
<
/template
>
<
template
v
-
slot
:
item
=
"
data
"
>
...
...
@@ -223,4 +221,19 @@ v-toolbar {
padding
-
right
:
0
px
!
important
;
padding
-
left
:
0
px
!
important
;
}
.
accessibility_link
{
display
:
inline
;
position
:
absolute
;
left
:
-
10000
px
;
}
.
accessibility_link
:
focus
{
position
:
absolute
;
left
:
48
px
;
top
:
48
px
;
background
-
color
:
white
;
padding
:
10
px
;
z
-
index
:
10000
;
}
<
/style
>
This diff is collapsed.
Click to expand it.
src/components/Header.vue
+
1
−
1
View file @
17f90c3c
...
...
@@ -2,7 +2,7 @@
<
template
>
<div
class =
"header"
>
<span
class=
"dict-label"
>
{{
dict_label
}}
</span>
<router-link
:to=
"$parent.link_to_self.ref"
@
click.native=
"$parent.details_click($parent.link_to_self)"
class=
"article_header"
><h2>
{{
header_text
}}
</h2>
<router-link
id=
"main_content"
:to=
"$parent.link_to_self.ref"
@
click.native=
"$parent.details_click($parent.link_to_self)"
class=
"article_header"
><h2>
{{
header_text
}}
</h2>
<span
:aria-label=
"hgno_arabic"
class=
"hgno"
v-if=
"$store.state.showHGNO"
>
{{
hgno
}}
</span></router-link>
<h2
class=
"secondary_header"
v-if=
"secondary_header_text.length"
>
{{
secondary_header_text
}}
</h2>
<span
class=
"header_group_list"
v-if=
"group_list.length"
>
{{
group_list
}}
</span>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment