From b1a9c28a9724ee5b06c28b76b800b173987f9707 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 13 Nov 2021 12:33:14 +0100 Subject: [PATCH] Add closeButtonAriaLabel to everymodal Signed-off-by: Thomas Citharel --- js/src/App.vue | 2 +- js/src/components/Comment/Comment.vue | 4 ++++ js/src/components/Event/EventMetadataList.vue | 6 +++++- .../Event/OrganizerPickerWrapper.vue | 6 +++++- .../Participation/ParticipationSection.vue | 1 + .../views/Account/IdentityPickerWrapper.vue | 6 +++++- js/src/views/Event/Edit.vue | 7 ++++++- js/src/views/Event/Event.vue | 5 +++++ js/src/views/Group/Group.vue | 3 +++ js/src/views/Posts/Post.vue | 8 +++++++- js/src/views/Resources/ResourceFolder.vue | 19 ++++++++++++++++--- js/src/views/Settings/AccountSettings.vue | 1 + 12 files changed, 59 insertions(+), 9 deletions(-) diff --git a/js/src/App.vue b/js/src/App.vue index cafe7ffe1..521346415 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -9,7 +9,7 @@ type="is-danger" :title="$t('Warning').toLocaleUpperCase()" closable - aria-close-label="Close" + :aria-close-label="$t('Close')" >

{{ $t("This is a demonstration site to test Mobilizon.") }} diff --git a/js/src/components/Comment/Comment.vue b/js/src/components/Comment/Comment.vue index 28267be3c..d450f99ed 100644 --- a/js/src/components/Comment/Comment.vue +++ b/js/src/components/Comment/Comment.vue @@ -299,6 +299,10 @@ export default class Comment extends Vue { onConfirm: this.reportComment, outsideDomain: this.comment.actor.domain, }, + // https://github.com/buefy/buefy/pull/3589 + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + closeButtonAriaLabel: this.$t("Close"), }); } diff --git a/js/src/components/Event/EventMetadataList.vue b/js/src/components/Event/EventMetadataList.vue index c43bd70cf..a1ca63100 100644 --- a/js/src/components/Event/EventMetadataList.vue +++ b/js/src/components/Event/EventMetadataList.vue @@ -62,7 +62,11 @@

- +