[wp-trac] [WordPress Trac] #21611: Remove CSS hover styling of postboxes with disabled JS

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 18:02:43 UTC 2012


#21611: Remove CSS hover styling of postboxes with disabled JS
--------------------------+-----------------------------
 Reporter:  TobiasBg      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 If JS is disabled in the browser, post metaboxes can neither be
 moved/sorted nor expanded/shrunken.
 However, due to the current wp-admin-CSS, the boxes still show effects on
 mouse hover (like text color change, other mouse pointers, visible arrow
 handle).
 This can confuse users as nothing is happening when clicking on them, so
 I'd say that this is a (though rare to see) styling bug.

 I suggest to simply only do these hover effects, if JS is enabled.
 This is as simple as prepending the relevant CSS selectors with the ".js"
 class that we have (or not have) on <body>.

 The attached patch does this for post metaboxes, as well as for the
 widgets page, where the same occurs under a different name.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21611>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list