Make WordPress Core

Opened 2 years ago

Closed 6 months ago

#55769 closed defect (bug) (worksforme)

Custom css changes admin top links

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

Description

​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 (5)

#1 @sabernhardt
2 years 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
2 years ago

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

#4 @sabernhardt
23 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.

#5 @sabernhardt
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Without knowing the special styles that override the Core text color, this ticket cannot move forward. We could reopen the ticket if/when the styles are shared.

Note: See TracTickets for help on using tickets.