Skip to content

Commit e1c85a1

Browse files
committed
Pressing the stepper actions, skipToMain, or the stepper will focus the form title
1 parent 077716f commit e1c85a1

13 files changed

Lines changed: 50 additions & 18 deletions

src/components/LayoutStepper.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@
3939
<aside
4040
class="col-auto gt-xs"
4141
id="stepper"
42-
tabindex="0"
42+
tabindex="-1"
4343
>
4444
<Stepper />
4545
</aside>
4646
<form
4747
class="col column"
4848
id="form"
49-
tabindex="0"
5049
>
5150
<div id="form-content">
5251
<router-view />
@@ -159,7 +158,7 @@ export default defineComponent({
159158
isPreviewDrawer: computed(() => q.screen.sm || q.screen.md),
160159
isMainConnected: computed(() => q.screen.xs || q.screen.sm),
161160
skipLinks: [
162-
{ id: 'form', where: 'main content' },
161+
{ id: 'form-title', where: 'main content' },
163162
{ id: 'stepper', where: 'stepper navigation' }
164163
],
165164
skipToMainFocused: ref(false),

src/components/ScreenAbstract.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Abstract
47
</h1>
58

src/components/ScreenAuthors.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Authors
47
</h1>
58

src/components/ScreenFinish.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
<h1
33
id="form-title"
44
v-if="isValidCFF"
5+
tabindex="-1"
56
>
67
Congratulations
78
</h1>
89
<h1
910
id="form-title"
1011
v-else
12+
tabindex="-1"
1113
>
1214
Uh-oh!
1315
</h1>

src/components/ScreenIdentifiers.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Identifiers
47
</h1>
58

src/components/ScreenKeywords.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Keywords
47
</h1>
58

src/components/ScreenLicense.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
License
47
</h1>
58

src/components/ScreenRelatedResources.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Related resources
47
</h1>
58

src/components/ScreenStart.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Start
47
</h1>
58

@@ -40,7 +43,7 @@
4043
</template>
4144
</q-input>
4245
<q-input
43-
aria-label="`Title of the ${ type }. Press tab to reach help button.`"
46+
aria-label="Personalized message. Leave blank to use default. Press tab to reach help button."
4447
data-cy="input-message"
4548
label="Personalized message. Leave blank to use default"
4649
outlined

src/components/ScreenVersionSpecific.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<h1 id="form-title">
2+
<h1
3+
id="form-title"
4+
tabindex="-1"
5+
>
36
Version specific
47
</h1>
58

0 commit comments

Comments
 (0)