From 19874ef231c1b677791723600169e1aa45571169 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Tue, 20 Jun 2023 14:41:51 -0400 Subject: [PATCH] label to close button --- packages/client/src/components/MkModal.vue | 7 ------- packages/client/src/components/MkModalWindow.vue | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/client/src/components/MkModal.vue b/packages/client/src/components/MkModal.vue index 0351cdd0fd..9f25f9cc40 100644 --- a/packages/client/src/components/MkModal.vue +++ b/packages/client/src/components/MkModal.vue @@ -179,7 +179,6 @@ let transitionDuration = $computed(() => let contentClicking = false; -// const focusedElement = document.activeElement; function close(ev, opts: { useSendAnimation?: boolean } = {}) { // removeEventListener("popstate", close); // if (props.preferType == "dialog") { @@ -193,16 +192,10 @@ function close(ev, opts: { useSendAnimation?: boolean } = {}) { if (props.src) props.src.style.pointerEvents = "auto"; showing = false; emit("close"); - // if (!props.noReturnFocus) { - // focusedElement.focus(); - // } } function onBgClick() { if (contentClicking) return; - // if (!props.noReturnFocus) { - // focusedElement.focus(); - // } emit("click"); } diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index 55f9427503..a3dccb7644 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -27,6 +27,7 @@ :aria-label="i18n.t('close')" class="_button" @click="$emit('close')" + v-tooltip="i18n.ts.close" >