From aece56cb951dbc41840d16d1bfb555d464db8f79 Mon Sep 17 00:00:00 2001 From: Faisal Ahammad Date: Thu, 6 Aug 2026 14:13:10 +0600 Subject: [PATCH] fix(admin-menu): restore visible background pill on active menu badge 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 #8073 --- assets/css/global.scss | 5 +++++ changelog/fix-8073-admin-menu-active-badge-color | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 changelog/fix-8073-admin-menu-active-badge-color diff --git a/assets/css/global.scss b/assets/css/global.scss index 6e77110c54..93734a6fee 100755 --- a/assets/css/global.scss +++ b/assets/css/global.scss @@ -64,6 +64,11 @@ $promo_highlight: #43af99; line-height: 1; } +#adminmenuwrap #adminmenu li.current a > .awaiting-mod:not(.sensei-promo-groups__badge):not(.sensei-upsell-pro-badge) { + background-color: $promo_highlight; + color: #fff; +} + .sensei-wp-list-table-row--disabled .sensei-email-unavailable { color: #999999; } diff --git a/changelog/fix-8073-admin-menu-active-badge-color b/changelog/fix-8073-admin-menu-active-badge-color new file mode 100644 index 0000000000..fb4cf98701 --- /dev/null +++ b/changelog/fix-8073-admin-menu-active-badge-color @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Restore the visible background pill on the admin menu count badge when its menu item is the active one.