fix(admin-menu): restore visible background pill on active menu badge - #8133
fix(admin-menu): restore visible background pill on active menu badge#8133faisalahammad wants to merge 2 commits into
Conversation
WordPress core's colors.css overrides the .awaiting-mod span with a near-black background when the menu item is the currently active one, so the count number on Sensei admin badges (Home notices, Grading ungraded) renders as a bare number with no pill. Add a SCSS override scoped to the active item that uses the existing $promo_highlight accent, with :not() exclusions so the Pro-promo pills are unaffected. Closes Automattic#8073
|
CI check status on this PR. Psalm (8.2) and PHP Linting both pass at the current head (aece56c). The diff only changes SCSS and changelog, there is no PHP code to check. Two other checks still fail, both from the fork PR permission model:
No code changes were needed or made for this PR. |
Resolves #8073
Proposed Changes
.awaiting-mod) on Sensei admin screens: WordPress core'scolors.csspaints the active menu item's count a near-black background, so the number renders as a bare character with no pill. Add a SCSS override scoped to theli.currentitem that uses the existing$promo_highlightaccent, with:not()exclusions so the Pro-promo pills are unaffected.Screenshots
Testing Instructions
$promo_highlightpill:not()selectors)New/Updated Hooks
N/A
Deprecated Code
N/A
Changelog entry
changelog/fix-8073-admin-menu-active-badge-color(fork cannot use the automated CI checkbox)