[wp-trac] [WordPress Trac] #31345: Admin menu icon colors fixes

WordPress Trac noreply at wordpress.org
Tue Apr 7 18:49:04 UTC 2015


#31345: Admin menu icon colors fixes
----------------------------+------------------------
 Reporter:  afercia         |       Owner:  helen
     Type:  defect (bug)    |      Status:  reviewing
 Priority:  high            |   Milestone:  4.2
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui
----------------------------+------------------------

Comment (by afercia):

 Replying to [comment:13 ericlewis]:
 > There seems to be some stickiness with the color, unclear why.
 hi @ericlewis
 yes, IE 8 doesn't repaint pseudo elements on a parent class name change,
 so the icon color won't change. See for example:
 http://stackoverflow.com/questions/8703799/forcing-ie8-to-rerender-
 repaint-before-after-pseudo-elements

 If we want to fix this, we need a way to force a repaint. The simpler way
 would be to just add an extra space to the `content` CSS property but this
 would mean changing all the dashicons CSS and just for IE 8. There are
 also JavaScript hacks but I'm very, very, reluctant to suggest them and
 honestly I wouldn't recommend to do this. See attached demo patch.

 It would be great if someone knew some simpler, less intrusive, way to
 force a repaint in IE 8 :)

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


More information about the wp-trac mailing list