mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
Using autofocus too much hurts accessibility[1] as screen readers jump to the autofocused field. Specifically, it should used only when it increases UX significantly, when the form is the only thing on the page and there is nothing to read before the field is filled. - Networks: There is not much improvement to UX by focusing on a radio select. - Update User Form: there is a statement to be read before the first element is filled up. Username is changed rarely but it being focused on. - First boot user account: There is content to be read before filling the form and this will be skipped by the screen reader. Links: 1) https://www.boia.org/blog/accessibility-tips-be-cautious-when-using-autofocus Tests: - networks: Add new connection form works. The connection type is not autofocused. - users: Update user form works. Username is not autofocused. - users: First boot form works. Username is not autofocused. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>