From 1ad3fcf20c142b98849ebdbf6d0de311bbed1be0 Mon Sep 17 00:00:00 2001 From: Lucie <25330882+lihbr@users.noreply.github.com> Date: Fri, 25 Nov 2022 18:46:25 -0500 Subject: [PATCH] feat(a11y): improve focus state (#116) --- components/account/AccountAvatar.vue | 4 +-- components/nav/NavSide.vue | 36 ++++++++++++------------ components/nav/NavTitle.vue | 2 +- components/status/StatusActionButton.vue | 11 +++++--- components/status/StatusActions.vue | 14 ++++----- components/status/StatusAttachment.vue | 30 ++++++++++++-------- components/status/StatusCard.vue | 2 +- layouts/default.vue | 2 +- 8 files changed, 56 insertions(+), 45 deletions(-) diff --git a/components/account/AccountAvatar.vue b/components/account/AccountAvatar.vue index 45ef4411..5cf74ad7 100644 --- a/components/account/AccountAvatar.vue +++ b/components/account/AccountAvatar.vue @@ -18,8 +18,8 @@ defineOptions({ :account="account" absolute top-0 left-0 z-10 op0 pointer-events-none rotate--2 mt--100vh - font-normal delay-300 duration-300 transition transform - group-hover="pointer-events-auto op100 rotate-0 mt-0" + font-normal delay-300 duration-300 transition transform invisible + group-hover="visible pointer-events-auto op100 rotate-0 mt-0" translate="x-[calc(-1rem-1px)] y-[calc(-1rem-1px)]" class="ease-[cubic-bezier(0.4, 0.0, 0.2, 1)]" style="transform-origin: calc(1rem + 1px) calc(0.75rem + 1px);" diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue index 2d41a2d3..df320ace 100644 --- a/components/nav/NavSide.vue +++ b/components/nav/NavSide.vue @@ -4,58 +4,58 @@