From 291a788438ac6e352bcb6687ea96c6664fb4b023 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 7 Sep 2021 17:52:34 +0200 Subject: [PATCH] Various accessibility improvements Signed-off-by: Thomas Citharel --- js/src/components/Editor.vue | 16 ++ js/src/components/Event/EventListViewCard.vue | 2 +- js/src/components/Event/EventMetadataItem.vue | 1 + js/src/components/Event/EventMetadataList.vue | 8 +- .../Event/OrganizerPickerWrapper.vue | 4 +- js/src/components/Event/TagInput.vue | 13 +- js/src/components/Footer.vue | 1 + js/src/components/Group/GroupMemberCard.vue | 4 +- js/src/components/Post/PostElementItem.vue | 10 +- js/src/views/About.vue | 8 +- .../views/Account/children/EditIdentity.vue | 36 ++-- js/src/views/Admin/GroupProfiles.vue | 13 +- js/src/views/Admin/Profiles.vue | 13 +- js/src/views/Admin/Settings.vue | 149 +++++++------ js/src/views/Admin/Users.vue | 4 +- js/src/views/Event/Edit.vue | 199 +++++++++++------- js/src/views/Group/Create.vue | 18 +- js/src/views/Group/GroupFollowers.vue | 2 +- js/src/views/Group/GroupMembers.vue | 14 +- js/src/views/Group/GroupSettings.vue | 4 +- js/src/views/Home.vue | 12 +- js/src/views/Moderation/Logs.vue | 1 + js/src/views/Posts/Edit.vue | 66 +++--- js/src/views/Resources/ResourceFolder.vue | 31 ++- js/src/views/Settings/Notifications.vue | 13 +- js/src/views/Settings/Preferences.vue | 21 +- js/tests/unit/specs/boot/routes.spec.ts | 4 +- .../PostElementItem.spec.ts.snap | 12 +- 28 files changed, 437 insertions(+), 242 deletions(-) diff --git a/js/src/components/Editor.vue b/js/src/components/Editor.vue index 3e6491b76..a287cd987 100644 --- a/js/src/components/Editor.vue +++ b/js/src/components/Editor.vue @@ -16,6 +16,7 @@ :class="{ 'is-active': editor.isActive('bold') }" @click="editor.chain().focus().toggleBold().run()" type="button" + :title="$t('Bold')" > @@ -25,6 +26,7 @@ :class="{ 'is-active': editor.isActive('italic') }" @click="editor.chain().focus().toggleItalic().run()" type="button" + :title="$t('Italic')" > @@ -34,6 +36,7 @@ :class="{ 'is-active': editor.isActive('underline') }" @click="editor.chain().focus().toggleUnderline().run()" type="button" + :title="$t('Underline')" > @@ -44,6 +47,7 @@ :class="{ 'is-active': editor.isActive('heading', { level: 1 }) }" @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" type="button" + :title="$t('Heading Level 1')" > @@ -54,6 +58,7 @@ :class="{ 'is-active': editor.isActive('heading', { level: 2 }) }" @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" type="button" + :title="$t('Heading Level 2')" > @@ -64,6 +69,7 @@ :class="{ 'is-active': editor.isActive('heading', { level: 3 }) }" @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" type="button" + :title="$t('Heading Level 3')" > @@ -73,6 +79,7 @@ @click="showLinkMenu()" :class="{ 'is-active': editor.isActive('link') }" type="button" + :title="$t('Add link')" > @@ -82,6 +89,7 @@ class="menubar__button" @click="editor.chain().focus().unsetLink().run()" type="button" + :title="$t('Remove link')" > @@ -91,6 +99,7 @@ v-if="!isBasicMode" @click="showImagePrompt()" type="button" + :title="$t('Add picture')" > @@ -101,6 +110,7 @@ :class="{ 'is-active': editor.isActive('bulletList') }" @click="editor.chain().focus().toggleBulletList().run()" type="button" + :title="$t('Bullet list')" > @@ -111,6 +121,7 @@ :class="{ 'is-active': editor.isActive('orderedList') }" @click="editor.chain().focus().toggleOrderedList().run()" type="button" + :title="$t('Ordered list')" > @@ -121,6 +132,7 @@ :class="{ 'is-active': editor.isActive('blockquote') }" @click="editor.chain().focus().toggleBlockquote().run()" type="button" + :title="$t('Quote')" > @@ -130,6 +142,7 @@ class="menubar__button" @click="editor.chain().focus().undo().run()" type="button" + :title="$t('Undo')" > @@ -139,6 +152,7 @@ class="menubar__button" @click="editor.chain().focus().redo().run()" type="button" + :title="$t('Redo')" > @@ -155,6 +169,7 @@ :class="{ 'is-active': editor.isActive('bold') }" @click="editor.chain().focus().toggleBold().run()" type="button" + :title="$t('Bold')" > {{ $t("Bold") }} @@ -165,6 +180,7 @@ :class="{ 'is-active': editor.isActive('italic') }" @click="editor.chain().focus().toggleItalic().run()" type="button" + :title="$t('Italic')" > {{ $t("Italic") }} diff --git a/js/src/components/Event/EventListViewCard.vue b/js/src/components/Event/EventListViewCard.vue index a8c4f6fee..3042f4fc5 100644 --- a/js/src/components/Event/EventListViewCard.vue +++ b/js/src/components/Event/EventListViewCard.vue @@ -12,7 +12,7 @@

{{ event.title }}

-
+
{{ event.physicalAddress.locality }} diff --git a/js/src/components/Event/EventMetadataItem.vue b/js/src/components/Event/EventMetadataItem.vue index 9a950b860..332b1276a 100644 --- a/js/src/components/Event/EventMetadataItem.vue +++ b/js/src/components/Event/EventMetadataItem.vue @@ -9,6 +9,7 @@ :src="`/img/${metadataItem.icon.substring(8)}_monochrome.svg`" width="24" height="24" + alt="" /> diff --git a/js/src/components/Event/EventMetadataList.vue b/js/src/components/Event/EventMetadataList.vue index b6b863e77..9868cbedd 100644 --- a/js/src/components/Event/EventMetadataList.vue +++ b/js/src/components/Event/EventMetadataList.vue @@ -9,7 +9,11 @@ />
- +