From 4fdb09de588fb1ff32184411df80d5d59333b94c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 26 Aug 2023 10:44:00 +0800 Subject: Fix incorrect "tabindex" attributes (#26733) Fix #26731 Almost all "tabindex" in code are incorrect. 1. All "input/button" by default are focusable, so no need to use "tabindex=0" 2. All "div/span" by default are not focusable, so no need to use "tabindex=-1" 3. All "dropdown" are focusable by framework, so no need to use "tabindex" 4. Some tabindex values are incorrect (eg: `new_form.tmpl`), so remove them Co-authored-by: Giteabot --- web_src/js/components/DiffCommitSelector.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'web_src') diff --git a/web_src/js/components/DiffCommitSelector.vue b/web_src/js/components/DiffCommitSelector.vue index e24619dc08..283ef03ab9 100644 --- a/web_src/js/components/DiffCommitSelector.vue +++ b/web_src/js/components/DiffCommitSelector.vue @@ -6,7 +6,6 @@ @click.stop="toggleMenu()" :data-tooltip-content="locale.filter_changes_by_commit" aria-haspopup="true" - tabindex="0" aria-controls="diff-commit-selector-menu" :aria-label="locale.filter_changes_by_commit" aria-activedescendant="diff-commit-list-show-all" @@ -15,7 +14,7 @@