[wp-trac] [WordPress Trac] #42530: Unexpected focus lost when switching editor tabs

WordPress Trac noreply at wordpress.org
Mon Nov 13 15:00:01 UTC 2017


#42530: Unexpected focus lost when switching editor tabs
------------------------------+--------------------------------------------
 Reporter:  ocean90           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.9
Component:  Editor            |     Version:  4.9
 Severity:  normal            |  Resolution:
 Keywords:  2nd-opinion       |     Focuses:  accessibility, administration
  needs-patch                 |
------------------------------+--------------------------------------------

Comment (by afercia):

 Seems to me this is part of the changes to keep the selection when
 switching editor modes, see [41630].

 However, moving focus programmatically is not a good practice from an
 accessibility perspective. Same for scrolling the whole page.

 Moving focus programmatically is always an assumption and may not be what
 users really want. It generally assumes one workflow, which may be the
 desired workflow or not. Scrolling the whole page shouldn't happen. Maybe
 the content within the editor should scroll, if necessary, to reveal the
 selection, if any.

 I'd say when there's no selection or the editor had no focus, nothing of
 all this should happen.

 Seems to me when the "auto-save-draft" notice appears, the scrolling
 happens also on first page load, which is very confusing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42530#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list