Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#55769 new defect (bug)

Custom css changes admin top links

Reported by: martiniwebb's profile martiniwebb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Toolbar Keywords: has-screenshots reporter-feedback
Focuses: css Cc:


​Observing from ​2021​, ​if the href link color for a component in a plugin or a theme is changed, ​it affects the admin ​top links too though the two are not related. I expect the WordPress core to preserve its colors.

Change History (4)

#1 @sabernhardt
17 months ago

  • Focuses css added
  • Keywords needs-screenshots reporter-feedback added

Could you share screenshots and an example of a plugin or theme that overrides the link color?

#3 @sabernhardt
17 months ago

  • Component changed from General to Toolbar
  • Keywords reporter-feedback removed

#4 @sabernhardt
17 months ago

  • Keywords has-screenshots reporter-feedback added; needs-screenshots removed

I think we need to know what custom link styles you use in Simple Custom CSS and JS, SiteOrigin CSS and/or YellowPencil. The #wpadminbar a.ab-item selector has high specificity already with an ID.

#wpadminbar .ab-empty-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
	color: #f0f0f1;

In the screenshots, those .ab-item links have a different color, but the .ab-label spans retain the default light gray. I would like to make the icon links consistently use the span markup, but then the sub-menus still would have a different color in your situation.

Note: See TracTickets for help on using tickets.