Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Feb 2012 at 04:54 UTC
Updated:
17 Jan 2015 at 11:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cweagansTagging
Comment #2
cweagansPatch attached. It doesn't work in the overlay, which is maddening.
Comment #2.0
cweagansUpdated issue summary.
Comment #3
xjm(Merging "node system" and "node.module" components for 8.x; disregard.)
Comment #4
jhedstromComment #5
AkshayKalose commentedRerolled the patch for this issue.
Comment #6
AkshayKalose commentedRe-post of reroll. Previous not patching?
Comment #7
penyaskitoLooks like there is a problem with UTF16 in that patch:
Checking with file linux tool:
Latest patch was done with Windows, I don't know what could be wrong in the environment.
Comment #8
AkshayKalose commentedUploaded patch in ANSI encoding.
Comment #10
penyaskitoFormat is ok now (look at the filesize and compare with the other patches and the initial one), but it does not apply.
Comment #11
AkshayKalose commentedNew patch with updated git settings:
Comment #12
penyaskitoComment #14
AkshayKalose commentedPatch from linux environment.
Comment #15
jhedstromI tried this manually and it didn't work. The title input ID in D8 is no longer
#edit-title, but rather,#edit-title-0-value. Hard-coding that seems messy. I wonder if the approach instead should be to simply provide focus on the first form input element? That would be more generic, should somebody remove the title field, or re-order the form.Comment #16
AkshayKalose commentedI think that's a good idea. In this patch, the first, enabled, visible input is focused.
Comment #17
jhedstromI tested this by enabling the search block in the header. The solution in #16 sets focus on the search input instead of the first element in the node form. I think adding the class
node-formto the selector will resolve this issue.I've also added a beta phase evaluation to the summary.
Comment #18
AkshayKalose commentedOh yeah! I was using only the Seven theme for Admin so I did not think to make it specific to .node-form since that was the only form on the page. Updated in this patch.
Comment #19
jhedstromPatch in #18 works as expected. This is a very practical usability improvement, thanks for working on this!
Comment #20
tstoecklerI don't see any review from @Bojhan, @yoroy, etc. i.e. someone from the usability team. I personally think this makes a lot of sense, but as far as I know, this would be the first time we would be doing something like this in core so I think it makes sense to get a proper sign-off. If there are no reservations I can see this being useful on other pages as well.
Also I don't see any discussions relating to accessibility. For keyboard only users, this is certainly an improvement, but I can't really judge how this will affect blind users. Should there be some announcement (Drupal.announce()) to where the current focus is or does that happen automatically? I think - again, as this will be setting a precedent - we need some accessibility expert's review here.
Comment #21
Bojhan commentedNo usability concerns. Its mainly an accessibility question I think.
Comment #22
idebr commented<input autofocus />? This would also resolve #1. For an example, see http://www.w3schools.com/tags/att_input_autofocus.aspComment #23
tstoecklerYes, that sounds preferable IMO.
http://www.brucelawson.co.uk/2009/the-accessibility-of-html-5-autofocus/
This article suggests also adding an aria-describedby for accessibility purposes, which seems sensible to me, but I've never used a screen reader, so it would still need verification from someone on the accessibility team that this is something that people using screen readers can work with.
Comment #24
tstoecklerHey look what I found :-)
Comment #25
tstoecklerOops
Comment #26
idebr commentedSynopsis of the related issue:
Comment #27
idebr commentedClosing this as "Won't fix" in line with the arguing in the related issue.