Accessibility - Tab order is wrong on creating an issue (tabindex) #11539

Closed
opened 2025-11-02 09:40:36 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @TDesjardins on GitHub (Aug 25, 2023).

Description

When navigating with keyboard when creating an issue the tab order isn't plausible. I expect after editing the title the next tab is the description text area or the tabpanel but it jumps to somewhere else and the next targets are the menu items.

Strange settings of tabindex attributes on different DOM elements are the cause. A best practice is to not set the tabindex > 0 and using the natural DOM order.

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

run from docker but doesn't matter

Database

None

Originally created by @TDesjardins on GitHub (Aug 25, 2023). ### Description When navigating with keyboard when creating an issue the tab order isn't plausible. I expect after editing the title the next tab is the description text area or the tabpanel but it jumps to somewhere else and the next targets are the menu items. Strange settings of `tabindex` attributes on different DOM elements are the cause. A best practice is to not set the `tabindex` > `0` and using the natural DOM order. ### Gitea Version 1.20.2 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? run from docker but doesn't matter ### Database None
GiteaMirror added the topic/accessibilitytype/bug labels 2025-11-02 09:40:36 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Aug 25, 2023):

-> Fix incorrect "tabindex" attributes #26733

@wxiaoguang commented on GitHub (Aug 25, 2023): -> Fix incorrect "tabindex" attributes #26733
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11539