WordPress.org

Make WordPress Core

Ticket #31345: 31345.force-ie-repaint.patch

File 31345.force-ie-repaint.patch, 3.0 KB (added by afercia, 5 years ago)
  • src/wp-admin/css/admin-menu.css

     
    359359}
    360360
    361361div.wp-menu-image:before {
    362         color: #999;
     362        color: #a0a5aa;
     363        color: rgba(240,245,250,0.6);
    363364        padding: 7px 0;
    364365        -webkit-transition: all .1s ease-in-out;
    365366        transition: all .1s ease-in-out;
     
    366367}
    367368
    368369#adminmenu div.wp-menu-image:before {
    369         color: #00b9eb;
     370        color: #a0a5aa;
    370371        color: rgba(240,245,250,0.6);
    371372}
    372373
     
    374375#adminmenu .wp-has-current-submenu div.wp-menu-image:before,
    375376#adminmenu .current div.wp-menu-image:before,
    376377#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before,
    377 #adminmenu a.current:hover div.wp-menu-image:before {
     378#adminmenu a.current:hover div.wp-menu-image:before,
     379#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
     380#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before {
    378381        color: #fff;
    379382}
    380383
    381 #adminmenu li:hover div.wp-menu-image:before {
     384/* Note: IE8 doesn't redraw the pseudo elements unless you make a change to the content */
     385#adminmenu li:hover div.wp-menu-image:before,
     386#adminmenu li a:focus div.wp-menu-image:before,
     387#adminmenu li.opensub div.wp-menu-image:before {
    382388        color: #00b9eb;
    383389}
    384390
     
    537543        font-size: 13px;
    538544        line-height: 34px;
    539545        margin-top: 10px;
    540         color: #00b9eb;
     546        color: #a0a5aa;
    541547        color: rgba(240,245,250,0.6);
    542548        -webkit-transition: all .1s ease-in-out;
    543549        transition: all .1s ease-in-out;
     
    577583        line-height: 15px;
    578584        left: -3px;
    579585        top: -3px;
    580         color: #00b9eb;
     586        color: #a0a5aa;
    581587        color: rgba(240,245,250,0.6);
    582588        font: normal 20px/1 'dashicons' !important;
    583589        speak: none;
  • src/wp-admin/css/colors/_admin.scss

     
    211211        background: $menu-current-background;
    212212}
    213213
    214 #adminmenu li.wp-has-current-submenu div.wp-menu-image:before {
     214#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
     215#adminmenu a.current:hover div.wp-menu-image:before,
     216#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
     217#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
     218#adminmenu li:hover div.wp-menu-image:before,
     219#adminmenu li a:focus div.wp-menu-image:before,
     220#adminmenu li.opensub div.wp-menu-image:before {
    215221        color: $menu-current-icon;
    216222}
    217223
  • src/wp-admin/js/common.js

     
    344344                                }
    345345
    346346                                $( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' );
     347                                // Force pseudo element repaint in IE 8
     348                                if ( isIE8 ) {
     349                                        $( this ).html( $( this ).html() );
     350                                }
    347351                        },
    348352                        timeout: 200,
    349353                        sensitivity: 7,