Skip to content

Commit 06e1d2c

Browse files
committed
Add keyboard accessibility to suppress checkbox in InfoModal
1 parent 9a6daa4 commit 06e1d2c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pcd-website/src/components/InfoModal.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ onUnmounted(() => {
7676
{{ props.autoOpened ? t('nav.info_modal_go_to_map') : t('nav.info_modal_back_to_map') }}
7777
</button>
7878
<label v-if="props.autoOpened" class="info-modal-suppress">
79-
<input type="checkbox" v-model="dontShowAgain" />
79+
<input
80+
type="checkbox"
81+
v-model="dontShowAgain"
82+
@keydown.enter.prevent="dontShowAgain = !dontShowAgain"
83+
/>
8084
{{ t('nav.info_modal_dont_show_again') }}
8185
</label>
8286
</div>

0 commit comments

Comments
 (0)