Two things:

  1. There should be an onload event to set the focus to the username field.
  2. There needs to be tabindexes on both the username and password fields since right now when you tab from the username field, you end up on the Drupal affiliates link.
CommentFileSizeAuthor
#8 drupal-20446-8.patch527 bytesdead_arm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cosmicdreams’s picture

I agree with #1 but can't reproduce #2. I think we should alter our default themes to incorporate this change.

elv’s picture

Isn't this a duplicate of http://drupal.org/node/29060 ?

cosmicdreams’s picture

Project: » Drupal core
Version: » 6.x-dev
Component: usability » base system
Category: task » feature

#2 is a duplicate of that issue and has been fixed. But #1 is still happening. My default drupal beta-2 site doesn't put the cursor on the login textbox when I go to it.

Perhaps we should triage this to the Drupal project?

StevenPatz’s picture

Version: 6.x-dev » 7.x-dev

Features go in 7.x

cosmicdreams’s picture

Thank you, I'll make note of that.

Jody Lynn’s picture

Title: User login page accessibility improvements » Usability Issue: Cursor Focus on User Login page

Setting the cursor focus on the login page sounds like a decent idea to me.

Tor Arne Thune’s picture

Title: Usability Issue: Cursor Focus on User Login page » Cursor focus on user login page
Version: 7.x-dev » 8.x-dev
Issue tags: +Usability

Still a valid issue. I don't like having to tab or click every time I go to login and can imagine others feel the same way.

dead_arm’s picture

Status: Active » Needs review
FileSize
527 bytes

#1174936: Allow FAPI usage of the autofocus attribute was won't fixed, so this would need to be added via #attributes.

Autofocus is HTML5 only, but that's not a problem for D8.

Status: Needs review » Needs work
Issue tags: -Usability

The last submitted patch, drupal-20446-8.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
Issue tags: +Usability

#8: drupal-20446-8.patch queued for re-testing.

Jody Lynn’s picture

Status: Needs review » Reviewed & tested by the community

I approve this patch to this 7yo usability issue. Thank you dead_arm for joining core office hours!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Nice! Committed/pushed to 8.x.

ZenDoodles’s picture

Discussion in IRC webchick said, "The biggest reason not to backport that is, I imagine it breaks XHTML validation." So we won't backport to D7.

Status: Fixed » Closed (fixed)
Issue tags: -Usability

Automatically closed -- issue fixed for 2 weeks with no activity.

mgifford’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
Issue tags: +Accessibility
Related issues: +#2096347: Add "autofocus" attribute to the module search

I was looking at autocomplete for #2096347: Add "autofocus" attribute to the module search and we're not being consistent about how we use autocomplete in Drupal 8 and we have no means to identify when it is appropriate to do so.

Right now it's used in most user forms, but not /user/register

Users should be able to predict when user forms will be presented. They need to have sufficient context such that screen reader users aren't confused by them.

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Active » Postponed
Issue tags: +keyboard focus
mgifford’s picture

Status: Postponed » Active

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

AaronChristian’s picture

Anyone know the status of this task?

dawehner’s picture

Component: base system » user.module

Well it works for /user/login but doesn't for /user/register

Moving to the right issue queue.

  • catch committed 439e27c on 8.3.x
    Issue #20446 by dead_arm: Added Cursor focus on user login page.
    
    

  • catch committed 439e27c on 8.3.x
    Issue #20446 by dead_arm: Added Cursor focus on user login page.
    
    

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

  • catch committed 439e27c on 8.4.x
    Issue #20446 by dead_arm: Added Cursor focus on user login page.
    
    

  • catch committed 439e27c on 8.4.x
    Issue #20446 by dead_arm: Added Cursor focus on user login page.
    
    

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

andrewmacpherson’s picture

tagging, just gathering issues which requested autofocus

andrewmacpherson’s picture

Status: Active » Closed (duplicate)

tCurrent status:

user/login - has autofocus, works
user/password - has autofocus, works
user/register - does not have autofocus.

We have #2861374: Inconsistent user interface with focusing fields to discuss this inconsistency, and it has more detail. So I'm closing his as a duplicate.

andrewmacpherson’s picture

Issue tags: +autofocus