From 9bd55b6db58904ce90a3951d25b61a917341404a Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Tue, 1 Mar 2022 12:11:53 +0530 Subject: [PATCH] chore(a11y): improve component roles --- .../components/app/Announcement.vue | 1 + .../hoppscotch-app/components/app/Footer.vue | 1 + .../hoppscotch-app/components/app/Header.vue | 2 +- .../hoppscotch-app/components/app/Sidenav.vue | 40 ++-- .../components/button/Primary.vue | 1 + .../components/button/Secondary.vue | 1 + .../components/collections/ChooseType.vue | 34 +-- .../collections/graphql/Collection.vue | 1 + .../components/collections/graphql/Folder.vue | 1 + .../collections/graphql/ImportExport.vue | 64 +++--- .../collections/graphql/Request.vue | 1 + .../components/collections/my/Collection.vue | 1 + .../components/collections/my/Folder.vue | 1 + .../components/collections/my/Request.vue | 1 + .../collections/teams/Collection.vue | 1 + .../components/collections/teams/Folder.vue | 1 + .../components/collections/teams/Request.vue | 1 + .../components/environments/Environment.vue | 1 + .../components/environments/ImportExport.vue | 64 +++--- .../components/environments/index.vue | 52 +++-- .../components/http/Authorization.vue | 214 +++++++++--------- .../hoppscotch-app/components/http/Body.vue | 50 ++-- .../components/http/CodegenModal.vue | 2 +- .../components/http/Request.vue | 16 +- .../components/http/TestResult.vue | 1 + .../lenses/renderers/JSONLensRenderer.vue | 34 ++- .../components/realtime/Socketio.vue | 76 ++++--- .../components/smart/ChangeLanguage.vue | 26 ++- .../components/smart/Checkbox.vue | 2 + .../components/smart/ConfirmModal.vue | 2 + .../components/smart/FontSizePicker.vue | 32 +-- .../hoppscotch-app/components/smart/Item.vue | 1 + .../hoppscotch-app/components/smart/Link.js | 2 + .../hoppscotch-app/components/smart/Modal.vue | 2 + .../hoppscotch-app/components/smart/Radio.vue | 2 + .../hoppscotch-app/components/smart/Tabs.vue | 1 + .../hoppscotch-app/components/teams/Edit.vue | 92 ++++---- .../components/teams/Invite.vue | 92 ++++---- .../hoppscotch-app/components/teams/Team.vue | 1 + 39 files changed, 498 insertions(+), 420 deletions(-) diff --git a/packages/hoppscotch-app/components/app/Announcement.vue b/packages/hoppscotch-app/components/app/Announcement.vue index a86e3ade9..393ca82f9 100644 --- a/packages/hoppscotch-app/components/app/Announcement.vue +++ b/packages/hoppscotch-app/components/app/Announcement.vue @@ -1,6 +1,7 @@ -
+ diff --git a/packages/hoppscotch-app/components/http/CodegenModal.vue b/packages/hoppscotch-app/components/http/CodegenModal.vue index aca7a7531..2940ce0ac 100644 --- a/packages/hoppscotch-app/components/http/CodegenModal.vue +++ b/packages/hoppscotch-app/components/http/CodegenModal.vue @@ -31,7 +31,7 @@ :placeholder="`${t('action.search')}`" />
-
+ @@ -69,6 +71,7 @@ ref="sendTippyActions" class="flex flex-col focus:outline-none" tabindex="0" + role="menu" @keyup.c="curl.$el.click()" @keyup.s="show.$el.click()" @keyup.delete="clearAll.$el.click()" @@ -150,6 +153,7 @@ ref="saveTippyActions" class="flex flex-col focus:outline-none" tabindex="0" + role="menu" @keyup.c="copyRequestAction.$el.click()" @keyup.s="saveRequestAction.$el.click()" @keyup.escape="saveOptions.tippy().hide()" diff --git a/packages/hoppscotch-app/components/http/TestResult.vue b/packages/hoppscotch-app/components/http/TestResult.vue index a8aa8e469..195152114 100644 --- a/packages/hoppscotch-app/components/http/TestResult.vue +++ b/packages/hoppscotch-app/components/http/TestResult.vue @@ -37,6 +37,7 @@