From 09ee93d3320dae313c54ae4c6b2e13bf2eb99076 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Wed, 10 May 2023 15:15:27 -0400 Subject: [PATCH 1/3] Use tooltips as aria-labels --- packages/client/src/directives/tooltip.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/client/src/directives/tooltip.ts b/packages/client/src/directives/tooltip.ts index 4b495cf66..9dabd0756 100644 --- a/packages/client/src/directives/tooltip.ts +++ b/packages/client/src/directives/tooltip.ts @@ -20,6 +20,12 @@ export default { self.hideTimer = null; self.checkTimer = null; + if (!binding.modifiers.noLabel) { + if (!document.body.contains(el)) return; + if (self.text == null) return; + el.setAttribute("aria-label", self.text); + } + self.close = () => { if (self._close) { window.clearInterval(self.checkTimer); From 70198a8db11264626abb1e85c04eb27655fc9fe7 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Wed, 10 May 2023 16:20:52 -0400 Subject: [PATCH 2/3] some semantics --- packages/client/src/components/MkPostForm.vue | 5 +++-- packages/client/src/components/MkSuperMenu.vue | 8 ++++---- packages/client/src/components/global/MkPageHeader.vue | 8 ++++---- packages/client/src/pages/settings/index.vue | 4 ++-- packages/client/src/ui/_common_/navbar.vue | 8 ++++---- packages/client/src/ui/universal.widgets.vue | 4 ++-- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index 60d5dee2f..115211ede 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -1,8 +1,9 @@