[wp-trac] [WordPress Trac] #28599: Better Visual Focus Indication in Admin Menu

WordPress Trac noreply at wordpress.org
Sat Nov 15 19:03:59 UTC 2014


#28599: Better Visual Focus Indication in Admin Menu
--------------------------+------------------------------------------------
 Reporter:                |       Owner:
  AccessibleJoe           |      Status:  new
     Type:  defect (bug)  |   Milestone:  Future Release
 Priority:  normal        |     Version:  3.8
Component:  General       |  Resolution:
 Severity:  normal        |     Focuses:  ui, accessibility, administration
 Keywords:                |
--------------------------+------------------------------------------------

Comment (by florianziegler):

 After last Wednesday's discussion, I (gave it another try and) created a
 patch. Use "grunt patch" to apply it.

 With the patch applied, you should now see the "focus bar" on hover &
 focus on the left hand side of the respective menu item.

 Screenshot:

 [[Image(https://cldup.com/IfT3U7SFmu.png)]]

 Behavior of hover & focus is identical.

 I also added a transition (like [#comment:27 Michael Arestad suggested]).

 At this point it only works with the default color scheme: I had to
 include the color scheme's body class ("admin-color-fresh") as a selector
 in order not to affect the other color schemes. Once the other schemes are
 adjusted, we can get rid of the body class selectors.

 While working on this, I realized that the body class is not updated on
 the fly, when using the color picker on your profile page, thus causing
 problems when switching to any other than the default color scheme. I
 added that (missing) functionality to user-profile.js. (Let me know if
 this should have its own ticket.)

 Please test away and tell me, what you think. :)

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


More information about the wp-trac mailing list