[wp-trac] [WordPress Trac] #17442: CSS selector #wpadminbar * overwrites accessibility generic selectors like screen-reader-text

WordPress Trac wp-trac at lists.automattic.com
Sun May 15 12:52:23 UTC 2011


#17442: CSS selector #wpadminbar * overwrites accessibility generic selectors like
screen-reader-text
--------------------------+------------------------------
 Reporter:  hakre         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by hakre):

 The only way I found so far was to add !important which is as the last
 resort here only. That's because of the cascade and the admin bar using
 the #id selector and I didn't wanted to introduce admin bar selectors into
 global css files.

 As I was looking I've seen other css files next to global containing some
 .screen-reader-text selectors mainly adding visibility: hidden to them.
 From what I know this should not be done as screen readers might hide them
 as well. Just saying so, I think those can be dropped. You find them by
 searching for the class.

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


More information about the wp-trac mailing list