mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 06:38:32 -04:00
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 <teabot@gitea.io>
This commit is contained in:
parent
576644d815
commit
4fdb09de58
11 changed files with 54 additions and 55 deletions
|
@ -76,10 +76,10 @@
|
|||
</div>
|
||||
{{if and $canWriteProject (ne .ID 0)}}
|
||||
<div class="ui dropdown jump item">
|
||||
<div class="gt-px-3" tabindex="-1">
|
||||
<div class="gt-px-3">
|
||||
{{svg "octicon-kebab-horizontal"}}
|
||||
</div>
|
||||
<div class="menu user-menu" tabindex="-1">
|
||||
<div class="menu user-menu">
|
||||
<a class="item show-modal button" data-modal="#edit-project-column-modal-{{.ID}}">
|
||||
{{svg "octicon-pencil"}}
|
||||
{{ctx.Locale.Tr "repo.projects.column.edit"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue