Add closeButtonAriaLabel to everymodal
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e6b186026d
commit
b1a9c28a97
@ -9,7 +9,7 @@
|
|||||||
type="is-danger"
|
type="is-danger"
|
||||||
:title="$t('Warning').toLocaleUpperCase()"
|
:title="$t('Warning').toLocaleUpperCase()"
|
||||||
closable
|
closable
|
||||||
aria-close-label="Close"
|
:aria-close-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
{{ $t("This is a demonstration site to test Mobilizon.") }}
|
{{ $t("This is a demonstration site to test Mobilizon.") }}
|
||||||
|
@ -299,6 +299,10 @@ export default class Comment extends Vue {
|
|||||||
onConfirm: this.reportComment,
|
onConfirm: this.reportComment,
|
||||||
outsideDomain: this.comment.actor.domain,
|
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"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,11 @@
|
|||||||
</b-button>
|
</b-button>
|
||||||
</p>
|
</p>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-modal has-modal-card v-model="showNewElementModal">
|
<b-modal
|
||||||
|
has-modal-card
|
||||||
|
v-model="showNewElementModal"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<button
|
<button
|
||||||
|
@ -46,7 +46,11 @@
|
|||||||
/>
|
/>
|
||||||
<b-icon v-else size="is-large" icon="account-circle" />
|
<b-icon v-else size="is-large" icon="account-circle" />
|
||||||
</span>
|
</span>
|
||||||
<b-modal :active.sync="isComponentModalActive" has-modal-card>
|
<b-modal
|
||||||
|
:active.sync="isComponentModalActive"
|
||||||
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<p class="modal-card-title">{{ $t("Pick a profile or a group") }}</p>
|
<p class="modal-card-title">{{ $t("Pick a profile or a group") }}</p>
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
<b-modal
|
<b-modal
|
||||||
:active.sync="isAnonymousParticipationModalOpen"
|
:active.sync="isAnonymousParticipationModalOpen"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
ref="anonymous-participation-modal"
|
ref="anonymous-participation-modal"
|
||||||
>
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
|
@ -45,7 +45,11 @@
|
|||||||
</figure>
|
</figure>
|
||||||
<b-icon v-else size="is-large" icon="account-circle" />
|
<b-icon v-else size="is-large" icon="account-circle" />
|
||||||
</span>
|
</span>
|
||||||
<b-modal v-model="isComponentModalActive" has-modal-card>
|
<b-modal
|
||||||
|
v-model="isComponentModalActive"
|
||||||
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<identity-picker v-model="currentIdentity" />
|
<identity-picker v-model="currentIdentity" />
|
||||||
</b-modal>
|
</b-modal>
|
||||||
</div>
|
</div>
|
||||||
|
@ -339,7 +339,12 @@
|
|||||||
{{ $t("Only group moderators can create, edit and delete events.") }}
|
{{ $t("Only group moderators can create, edit and delete events.") }}
|
||||||
</b-message>
|
</b-message>
|
||||||
</div>
|
</div>
|
||||||
<b-modal v-model="dateSettingsIsOpen" has-modal-card trap-focus>
|
<b-modal
|
||||||
|
v-model="dateSettingsIsOpen"
|
||||||
|
has-modal-card
|
||||||
|
trap-focus
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<form action>
|
<form action>
|
||||||
<div class="modal-card" style="width: auto">
|
<div class="modal-card" style="width: auto">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
|
@ -325,6 +325,7 @@
|
|||||||
:active.sync="isReportModalActive"
|
:active.sync="isReportModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="reportModal"
|
ref="reportModal"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<report-modal
|
<report-modal
|
||||||
:on-confirm="reportEvent"
|
:on-confirm="reportEvent"
|
||||||
@ -334,6 +335,7 @@
|
|||||||
/>
|
/>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
:active.sync="isShareModalActive"
|
:active.sync="isShareModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="shareModal"
|
ref="shareModal"
|
||||||
@ -344,6 +346,7 @@
|
|||||||
:active.sync="isJoinModalActive"
|
:active.sync="isJoinModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="participationModal"
|
ref="participationModal"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<identity-picker v-model="identity">
|
<identity-picker v-model="identity">
|
||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
@ -380,6 +383,7 @@
|
|||||||
:active.sync="isJoinConfirmationModalActive"
|
:active.sync="isJoinConfirmationModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="joinConfirmationModal"
|
ref="joinConfirmationModal"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
@ -427,6 +431,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
class="map-modal"
|
class="map-modal"
|
||||||
v-if="event.physicalAddress && event.physicalAddress.geom"
|
v-if="event.physicalAddress && event.physicalAddress.geom"
|
||||||
:active.sync="showMap"
|
:active.sync="showMap"
|
||||||
|
@ -647,6 +647,7 @@
|
|||||||
<b-modal
|
<b-modal
|
||||||
v-if="physicalAddress && physicalAddress.geom"
|
v-if="physicalAddress && physicalAddress.geom"
|
||||||
:active.sync="showMap"
|
:active.sync="showMap"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<div class="map">
|
<div class="map">
|
||||||
<map-leaflet
|
<map-leaflet
|
||||||
@ -660,6 +661,7 @@
|
|||||||
</b-modal>
|
</b-modal>
|
||||||
</div>
|
</div>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
:active.sync="isReportModalActive"
|
:active.sync="isReportModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="reportModal"
|
ref="reportModal"
|
||||||
@ -673,6 +675,7 @@
|
|||||||
/>
|
/>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
v-if="group"
|
v-if="group"
|
||||||
:active.sync="isShareModalActive"
|
:active.sync="isShareModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
|
@ -176,6 +176,7 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</section>
|
</section>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
:active.sync="isReportModalActive"
|
:active.sync="isReportModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
ref="reportModal"
|
ref="reportModal"
|
||||||
@ -187,7 +188,12 @@
|
|||||||
@close="$refs.reportModal.close()"
|
@close="$refs.reportModal.close()"
|
||||||
/>
|
/>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal :active.sync="isShareModalActive" has-modal-card ref="shareModal">
|
<b-modal
|
||||||
|
:active.sync="isShareModalActive"
|
||||||
|
has-modal-card
|
||||||
|
ref="shareModal"
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<share-post-modal :post="post" />
|
<share-post-modal :post="post" />
|
||||||
</b-modal>
|
</b-modal>
|
||||||
</article>
|
</article>
|
||||||
|
@ -157,7 +157,11 @@
|
|||||||
:aria-current-label="$t('Current page')"
|
:aria-current-label="$t('Current page')"
|
||||||
>
|
>
|
||||||
</b-pagination>
|
</b-pagination>
|
||||||
<b-modal :active.sync="renameModal" has-modal-card>
|
<b-modal
|
||||||
|
:active.sync="renameModal"
|
||||||
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<form @submit.prevent="renameResource">
|
<form @submit.prevent="renameResource">
|
||||||
@ -172,7 +176,11 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal :active.sync="moveModal" has-modal-card>
|
<b-modal
|
||||||
|
:active.sync="moveModal"
|
||||||
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<resource-selector
|
<resource-selector
|
||||||
@ -184,7 +192,11 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<b-modal :active.sync="createResourceModal" has-modal-card>
|
<b-modal
|
||||||
|
:active.sync="createResourceModal"
|
||||||
|
has-modal-card
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<form @submit.prevent="createResource">
|
<form @submit.prevent="createResource">
|
||||||
@ -208,6 +220,7 @@
|
|||||||
has-modal-card
|
has-modal-card
|
||||||
class="link-resource-modal"
|
class="link-resource-modal"
|
||||||
aria-modal
|
aria-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
>
|
>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
|
@ -149,6 +149,7 @@
|
|||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<b-modal
|
<b-modal
|
||||||
|
:close-button-aria-label="$t('Close')"
|
||||||
:active.sync="isDeleteAccountModalActive"
|
:active.sync="isDeleteAccountModalActive"
|
||||||
has-modal-card
|
has-modal-card
|
||||||
full-screen
|
full-screen
|
||||||
|
Loading…
Reference in New Issue
Block a user