[wp-trac] [WordPress Trac] #21324: Visible Focus within Admin Screens could be much clearer.

WordPress Trac noreply at wordpress.org
Thu Oct 18 16:08:24 UTC 2012


#21324: Visible Focus within Admin Screens could be much clearer.
----------------------------+--------------------
 Reporter:  grahamarmfield  |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Accessibility   |     Version:  3.4.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------

Comment (by lessbloat):

 Replying to [comment:48 helenyhou]:
 > I can live with not personally liking the background color if those who
 need high visibility find it to be more useful, but requiring a JS
 workaround as the default in core is not acceptable.

 Is it specifically the fact that using

 {{{
 $('a').click(function () {
     $(this).blur();
 });
 }}}

 is a bit too brute force?  If so, I agree.  The only reason I used it is
 that I couldn't think of any other solution at the time.

 I spent a bit more time thinking about it this morning, and thought I'd
 offer up another approach. 21324.13.diff still uses JS, but it simply adds
 and removes a class (.clicked) to links on click, which seems much less
 intrusive to me than forcing :focus.

 It works surprisingly well in my tests (on Mac FF, Chrome, Safari & Win
 IE7, FF, Chrome) Performance wise, I wouldn't think we'd see any issues
 (even on lower CPU computers).  I'd specifically love to hear @azaozz and
 @helenyhou's thoughts on this approach.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21324#comment:49>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list