If remember_me_form_alter()
the username, password, remember me and form actions are given tabindex attributes with a value of 1.
I'm not sure why this was ever really needed, as the checkbox gets put in the right place in the form anyway so it's all navigable quite happily via keyboard?
Anyway, unless there's a really good reason why this is required, I'd say it shouldn't be in the module. Messing around with the natural tabbing order of the page is generally considered bad practice unless you really know what you're doing and have a very controlled environment. It's quite an invasive behavioural change.
In our case, we've got other form elements on that form itself which don't also get tabindex added, which makes for a really unpredictable tabbing behaviour. I'll not explain but it essentially makes the other form elements inaccessible (not strictly speaking, but it really messes up the UX for keyboard users).
Patch to follow!
Comment | File | Size | Author |
---|---|---|---|
#5 | remember_me_remove_tabindex-2370955-2.patch | 1.17 KB | karma123 |
#1 | remember_me_remove_tabindex-2370955-1.patch | 1.18 KB | stevetweeddale |
Comments
Comment #1
stevetweeddale CreditAttribution: stevetweeddale commentedAfter just removing the lines about tabindex I was left with a rather empty/odd looking logical structure so actually rewrote it a little bit to avoid looping over the array and hopefully make it a little easier to read.
Comment #2
karma123 CreditAttribution: karma123 commentedComment #3
james.williams CreditAttribution: james.williams at ComputerMinds commentedThe patch does not apply to the latest dev or stable versions, it needs re-rolling.
Comment #4
karma123 CreditAttribution: karma123 commentedReroll to version 7.1.1
Comment #5
karma123 CreditAttribution: karma123 commentedComment #6
james.williams CreditAttribution: james.williams at ComputerMinds commentedThanks!