From ef060068f41560fa66508185a3d627a1ac2dfbaa Mon Sep 17 00:00:00 2001 From: Alexandre Alves Date: Fri, 27 Dec 2024 15:38:43 +0000 Subject: [PATCH 1/9] fix keyboard nav on login screen --- .../src/components/Form/Checkbox/Checkbox.vue | 17 +++++- shell/components/AsyncButton.vue | 1 + shell/components/LocaleSelector.vue | 55 +++++++++++++++++-- shell/components/form/Password.vue | 39 +++++++++---- shell/pages/auth/login.vue | 5 ++ 5 files changed, 99 insertions(+), 18 deletions(-) diff --git a/pkg/rancher-components/src/components/Form/Checkbox/Checkbox.vue b/pkg/rancher-components/src/components/Form/Checkbox/Checkbox.vue index 22c6cdcce9f..0f799956cfe 100644 --- a/pkg/rancher-components/src/components/Form/Checkbox/Checkbox.vue +++ b/pkg/rancher-components/src/components/Form/Checkbox/Checkbox.vue @@ -114,6 +114,14 @@ export default defineComponent({ type: Boolean, default: false }, + + /** + * Tab index for proper keyboard nav control + */ + tabbingIndex: { + type: Number, + default: null + }, }, emits: ['update:value'], @@ -227,14 +235,14 @@ export default defineComponent({ :checked="isChecked" :value="valueWhenTrue" type="checkbox" - :tabindex="-1" + :tab-index="tabbingIndex" :name="id" @click.stop.prevent >