Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#40117 new defect (bug)

Dashicons in adminbar

Reported by: sebastian.pisula Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Toolbar Keywords: close
Focuses: Cc:


I try add to admin bar option with Dashicon, for example:

                                'id'    => 'test',
                                'title' => '<span class="dashicons dashicons-admin-links"></span> Label',

and I don't see icon. Why ? Css for wpadminbar overwrite font family for dashicons:

#wpadminbar *{
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;

Change History (1)

#1 @swissspidy
12 months ago

  • Component changed from General to Toolbar
  • Keywords close added

IIRC you'd need to use the ab-icon class if you add the icon like this.

Note: See TracTickets for help on using tickets.