Skip to content

Commit 3dc4637

Browse files
committed
Add aria-label to many places and remove wrong tabindex=-1
1 parent 8d7bd95 commit 3dc4637

11 files changed

Lines changed: 29 additions & 12 deletions

src/components/AuthorCardEditing.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131

132132
<q-card-actions align="right">
133133
<q-btn
134+
aria-label="Remove author being edited"
134135
color="negative"
135136
data-cy="btn-remove"
136137
dense

src/components/AuthorCardViewing.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,40 @@
1616
<q-btn
1717
class="author-button"
1818
color="blue"
19+
icon="ion-arrow-up"
20+
v-bind:aria-label="`Move author ${index + 1} up`"
1921
v-bind:data-cy="'btn-move-up' + index"
2022
v-bind:disable="index == 0"
21-
icon="ion-arrow-up"
22-
tabindex="-1"
2323
v-on:click="$emit('moveUp')"
2424
/>
2525
<q-btn
2626
class="author-button"
2727
color="blue"
28+
icon="ion-arrow-down"
29+
v-bind:aria-label="`Move author ${index + 1} down`"
2830
v-bind:data-cy="'btn-move-down' + index"
2931
v-bind:disable="index >= numAuthors - 1"
30-
icon="ion-arrow-down"
31-
tabindex="-1"
3232
v-on:click="$emit('moveDown')"
3333
/>
3434
<q-btn
3535
class="author-button"
3636
color="primary"
37-
v-bind:data-cy="'btn-edit' + index"
3837
flat
3938
hover-color="negative"
4039
icon="edit"
4140
title="Edit"
41+
v-bind:aria-label="`Edit author ${index + 1}`"
42+
v-bind:data-cy="'btn-edit' + index"
4243
v-on:click="$emit('editPressed')"
4344
/>
4445
<q-btn
4546
class="author-button"
4647
color="negative"
47-
v-bind:data-cy="'btn-remove' + index"
4848
hover-color="negative"
4949
icon="delete"
5050
title="Remove author"
51+
v-bind:aria-label="`Remove author ${index + 1}`"
52+
v-bind:data-cy="'btn-remove' + index"
5153
v-on:click="$emit('removePressed')"
5254
/>
5355
</div>

src/components/DownloadButton.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<template>
22
<q-btn
3+
aria-label="Download CITATION.cff"
34
color="primary"
45
data-cy="btn-download"
6+
download="CITATION.cff"
57
icon="download"
68
label="Download"
79
size="xl"
810
no-caps
911
type="a"
10-
download="CITATION.cff"
1112
v-bind:href="downloadUrl"
1213
v-bind:class="q.platform.is.mobile ? 'full-width' : ''"
1314
/>

src/components/Footer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<a
88
href="https://esciencecenter.nl"
99
target="_blank"
10+
aria-label="Netherlands eScience Center website (opens in a new tab)"
1011
>
1112
<img src="~assets/nlesc-logo.svg">
1213
</a>

src/components/Header.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
type="a"
1313
/>
1414
<q-btn
15+
aria-label="Documentation of the CFF schema"
1516
color=""
1617
flat
1718
href="https://github.com/citation-file-format/citation-file-format/blob/1.2.0/schema-guide.md"

src/components/IdentifierCardViewing.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
class="identifier-button"
1717
color="blue"
1818
icon="ion-arrow-up"
19-
tabindex="-1"
2019
v-bind:aria-label="`Move identifier ${index + 1} up`"
2120
v-bind:data-cy="'btn-move-up' + index"
2221
v-bind:disable="index == 0"
@@ -26,7 +25,6 @@
2625
class="identifier-button"
2726
color="blue"
2827
icon="ion-arrow-down"
29-
tabindex="-1"
3028
v-bind:aria-label="`Move identifier ${index + 1} down`"
3129
v-bind:data-cy="'btn-move-down' + index"
3230
v-bind:disable="index >= numIdentifiers - 1"
@@ -39,6 +37,7 @@
3937
hover-color="negative"
4038
icon="edit"
4139
title="Edit"
40+
v-bind:aria-label="`Edit identifier ${index + 1}`"
4241
v-bind:data-cy="'btn-edit' + index"
4342
v-on:click="$emit('editPressed')"
4443
/>
@@ -48,6 +47,7 @@
4847
hover-color="negative"
4948
icon="delete"
5049
title="Remove Identifier"
50+
v-bind:aria-label="`Remove identifier ${index + 1}`"
5151
v-bind:data-cy="'btn-remove' + index"
5252
v-on:click="$emit('removePressed')"
5353
/>

src/components/Keyword.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
class="keyword-btn"
2121
color="blue"
2222
icon="ion-arrow-up"
23-
tabindex="-1"
2423
v-bind:aria-label="`move keyword #${index + 1} up`"
2524
v-bind:data-cy="'btn-move-up' + index"
2625
v-bind:disable="index == 0"
@@ -30,7 +29,6 @@
3029
class="keyword-btn"
3130
color="blue"
3231
icon="ion-arrow-down"
33-
tabindex="-1"
3432
v-bind:aria-label="`move keyword #${index + 1} down`"
3533
v-bind:data-cy="'btn-move-down' + index"
3634
v-bind:disable="index == numKeywords - 1"
@@ -41,7 +39,6 @@
4139
color="negative"
4240
dense
4341
icon="delete"
44-
tabindex="-1"
4542
title="Remove"
4643
v-bind:aria-label="`remove keyword #${index + 1}`"
4744
v-bind:data-cy="'btn-remove' + index"

src/components/LayoutLanding.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
Citation File Format</a> file
3939
</div>
4040
<q-btn
41+
aria-label="Create your CITATION.cff file"
4142
class="start-button"
4243
data-cy="btn-create"
4344
label="Create"

src/components/Preview.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
hover-color="negative"
77
flat
88
icon="content_copy"
9+
aria-label="copy to clipboard"
910
v-bind:ripple="false"
1011
v-on:click="copyToClipboard"
1112
>

src/components/Stepper.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<q-step
1616
data-cy="step-start"
1717
name="start"
18+
aria-label="Start"
1819
title="Start"
1920
v-bind:active-icon="errorStateScreenStart ? 'warning' : 'edit'"
2021
v-bind:error="errorStateScreenStart"
@@ -25,6 +26,7 @@
2526
<q-step
2627
data-cy="step-authors"
2728
name="authors"
29+
aria-label="Authors"
2830
title="Authors"
2931
v-bind:active-icon="errorStateScreenAuthors ? 'warning' : 'edit'"
3032
v-bind:error="errorStateScreenAuthors"
@@ -35,6 +37,7 @@
3537
<q-step
3638
data-cy="step-identifiers"
3739
name="identifiers"
40+
aria-label="Identifiers"
3841
title="Identifiers"
3942
v-bind:active-icon="errorStateScreenIdentifiers ? 'warning' : 'edit'"
4043
v-bind:error="errorStateScreenIdentifiers"
@@ -46,6 +49,7 @@
4649
<q-step
4750
data-cy="step-related-resources"
4851
name="related-resources"
52+
aria-label="Related resources"
4953
title="Related resources"
5054
v-bind:active-icon="errorStateScreenRelatedResources ? 'warning' : 'edit'"
5155
v-bind:error="errorStateScreenRelatedResources"
@@ -57,6 +61,7 @@
5761
<q-step
5862
data-cy="step-abstract"
5963
name="abstract"
64+
aria-label="Abstract"
6065
title="Abstract"
6166
v-bind:order="4"
6267
v-if="showAdvanced"
@@ -66,6 +71,7 @@
6671
<q-step
6772
data-cy="step-keywords"
6873
name="keywords"
74+
aria-label="Keywords"
6975
title="Keywords"
7076
v-bind:active-icon="errorStateScreenKeywords ? 'warning' : 'edit'"
7177
v-bind:error="errorStateScreenKeywords"
@@ -77,6 +83,7 @@
7783
<q-step
7884
data-cy="step-license"
7985
name="license"
86+
aria-label="License"
8087
title="License"
8188
v-bind:order="6"
8289
v-if="showAdvanced"
@@ -86,6 +93,7 @@
8693
<q-step
8794
data-cy="step-version-specific"
8895
name="version-specific"
96+
aria-label="Version specific"
8997
title="Version specific"
9098
v-bind:active-icon="errorStateScreenVersionSpecific ? 'warning' : 'edit'"
9199
v-bind:error="errorStateScreenVersionSpecific"
@@ -98,6 +106,7 @@
98106
active-icon="navigate_next"
99107
data-cy="step-finish"
100108
name="finish"
109+
aria-label="Finish"
101110
title="Finish"
102111
v-bind:order="showAdvanced ? 8 : 2"
103112
v-on:click="setStepName('finish')"

0 commit comments

Comments
 (0)