From b8f0c2c38e41e01e5718bdc6948558d57c14c805 Mon Sep 17 00:00:00 2001 From: Jason Henriquez Date: Fri, 27 Oct 2023 00:35:18 -0500 Subject: [PATCH] Correct use of aria-selected in FT Note: was able to add aria-controls to ft-profile-selector because it keeps the hidden dropdown in the DOM. The same is not true of the ft-icon-button or ft-subscribe-button. Main point: aria-expanded should go on the button opening the dropdown, not the dropdown itself. --- src/renderer/components/ft-icon-button/ft-icon-button.vue | 3 +-- .../components/ft-profile-selector/ft-profile-selector.vue | 3 +++ .../components/ft-subscribe-button/ft-subscribe-button.vue | 5 ++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.vue b/src/renderer/components/ft-icon-button/ft-icon-button.vue index b1760e528e600..c699f4392ddfc 100644 --- a/src/renderer/components/ft-icon-button/ft-icon-button.vue +++ b/src/renderer/components/ft-icon-button/ft-icon-button.vue @@ -14,6 +14,7 @@ }" tabindex="0" role="button" + :aria-expanded="dropdownShown" @click="handleIconClick" @mousedown="handleIconMouseDown" @keydown.enter.prevent="handleIconClick" @@ -33,7 +34,6 @@ v-if="dropdownOptions.length > 0" class="list" role="listbox" - :aria-expanded="dropdownShown" >
  • diff --git a/src/renderer/components/ft-subscribe-button/ft-subscribe-button.vue b/src/renderer/components/ft-subscribe-button/ft-subscribe-button.vue index 1767123a78309..e722f569ad269 100644 --- a/src/renderer/components/ft-subscribe-button/ft-subscribe-button.vue +++ b/src/renderer/components/ft-subscribe-button/ft-subscribe-button.vue @@ -24,6 +24,7 @@ class="profileDropdownToggle" background-color="var(--primary-color)" text-color="var(--text-with-main-color)" + :aria-expanded="isProfileDropdownOpen" @click="toggleProfileDropdown" >