Make WordPress Core


Ignore:
Timestamp:
03/05/2014 08:03:33 PM (11 years ago)
Author:
ocean90
Message:

Introduce a .dashicons-before CSS class.

If you want to use a Dashicon before an element you can use the class because it will not change the elements content styling. With that you don't need to copy the entire .dashicons styling to your :before styling anymore.
To demonstrate this change, Admin Menu now uses Dashicons classes directly.

And it fixes a glitch in IE.

fixes #26630.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu-header.php

    r27151 r27418  
    9494            } elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {
    9595                $img = '<br />';
    96                 $img_class = ' dashicons ' . sanitize_html_class( $item[6] );
     96                $img_class = ' dashicons-before ' . sanitize_html_class( $item[6] );
    9797            }
    9898        }
Note: See TracChangeset for help on using the changeset viewer.