This discussion arose when searching a solution for this Jira issue.
https://github.com/xwiki/xwiki-platform/pull/2110
There is a need to remove the hard-coded tab-index from the form.
When removing them, the DOM order is used instead for tab indexing.
However, the login form needs this tab order:
Username —Tab–> Password —Tab–> Remember me —Tab–> Log-in
This cannot work with the former presentation of the login form (and without heavy css hacks).
The initial state:
The state without tab-index:
The state we want, without tab-index or css hack:
There are a few solutions on how to display the two links, while keeping them after the submit button in the DOM and tab orders:
- Like Sign in to GitHub · GitHub : sacrifice some accessibility and use a heavy css hack to make the visual order different from the DOM order (but keep it as it was in the initial state)
- Recovery links one under the other, right side
- Recovery links one under the other, left side
- Recovery links on both sides
- Light css hack to get both the recovery links above the submit button.
- Combine the two links in one prompt displayed under login
Notes:
- Those are quickly put together images, they don’t correspond to the expected result exactly but give an idea of the changes.
- Those are only a few possibilities, any other proposition is welcome
I think the most promising solutions are 6. and after it 4. .
1. should be avoided if possible, and 5. might become a bit cramped on smaller devices.
For 6., the exact content of the text and position of the links are not trivial and should be discussed if this is the solution we select.
What do you think is the solution we should select?