You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sensei menu notices badges missing background bubble when their item is active #8073
Sensei admin menu notification badges lose their background pill when their menu item is the currently-active one. The count number still renders, but with no colored bubble behind it, so it reads as a bare number floating in the menu.
This affects every Sensei badge that uses core's .awaiting-mod class, including:
Home notices count — Sensei_Home::add_admin_menu_item()
The badge uses WordPress core's .awaiting-mod class. On the current top-level/first menu item, core's admin color scheme (colors.css) overrides the bubble background to match the active menu color instead of the accent blue:
#adminmenu li.current a .awaiting-mod { color: #fff; background-color: rgb(12,12,12); }
The result is a white number on the near-black active-menu background — no visible pill. Non-current items (e.g. core "Plugins") keep the standard blue bubble.
Steps to reproduce
Have a Sensei badge count > 0 — e.g. a Home notice, or ungraded submissions for the Grading badge.
Navigate to that Sensei menu item (Home or Grading) so it becomes the active menu item.
Observe the badge: the count shows but the blue background bubble is missing. It can also appear/disappear inconsistently when hovering the menu.
Current behavior
Badge renders as a bare number with no background pill when its Sensei menu item is active.
changed the title [-]Home menu notices badge missing background bubble when Home is the active menu item[/-][+]Sensei menu notices badges (Home, Grading) missing background bubble when their item is active[/+]on Jul 8, 2026
changed the title [-]Sensei menu notices badges (Home, Grading) missing background bubble when their item is active[/-][+]Sensei menu notices badges missing background bubble when their item is active[/+]on Jul 8, 2026
I dug into this one and the root cause is a little different from the report, which changes where a fix should live. Sharing what I found in case it helps.
The badges use core's .awaiting-mod class, and core paints the current-item badge in wp-admin/css/admin-menu.css:
Under the default "Fresh" admin colour scheme that red stays put, so the pill is visible and there is no bug. The blend only shows up under a non-default colour scheme, because each scheme's colors.css overrides that same selector (and the :hover variant) with a scheme colour that sits close to the active or hovered row. Ocean, for example:
#adminmenuli.currenta.awaiting-mod,#adminmenuli:hovera.awaiting-mod{color:#fff;background:#627b83;}/* base badge is #aa9d88 */
So on the active or hovered item the pill drops to a low-contrast tone that reads as a bare number, which also explains the appears-and-disappears-on-hover note.
Two things worth flagging before a fix:
The selector is generic core (#adminmenu li.current a .awaiting-mod), not Sensei-specific, so core's own "comments awaiting moderation" badge behaves the same way under these schemes.
There is no single colour that is correct across schemes, since the right visible value is each scheme's own base badge colour. A Sensei-scoped override would have to be scheme-aware, or it will make Sensei's badge diverge from core's identical badges.
Given that, how would you prefer this handled? I am happy to do any of:
a scheme-aware override in Sensei's admin CSS that matches each scheme's base badge colour on the active and hover states,
a single scheme-neutral treatment, accepting it will not match core exactly, or
leave it in Sensei and open a core Trac ticket instead, since it is really core-wide behaviour.
Whichever fits how you would like Sensei to relate to core here. I have the CSS ready once you point me at the approach.
(full disclosure: AI helped me identify the issue and verify my work)
Activity
[-]Home menu notices badge missing background bubble when Home is the active menu item[/-][+]Sensei menu notices badges (Home, Grading) missing background bubble when their item is active[/+][-]Sensei menu notices badges (Home, Grading) missing background bubble when their item is active[/-][+]Sensei menu notices badges missing background bubble when their item is active[/+]thisismyurl commentedon Aug 4, 2026
I dug into this one and the root cause is a little different from the report, which changes where a fix should live. Sharing what I found in case it helps.
The badges use core's
.awaiting-modclass, and core paints the current-item badge inwp-admin/css/admin-menu.css:Under the default "Fresh" admin colour scheme that red stays put, so the pill is visible and there is no bug. The blend only shows up under a non-default colour scheme, because each scheme's
colors.cssoverrides that same selector (and the:hovervariant) with a scheme colour that sits close to the active or hovered row. Ocean, for example:So on the active or hovered item the pill drops to a low-contrast tone that reads as a bare number, which also explains the appears-and-disappears-on-hover note.
Two things worth flagging before a fix:
#adminmenu li.current a .awaiting-mod), not Sensei-specific, so core's own "comments awaiting moderation" badge behaves the same way under these schemes.Given that, how would you prefer this handled? I am happy to do any of:
Whichever fits how you would like Sensei to relate to core here. I have the CSS ready once you point me at the approach.
(full disclosure: AI helped me identify the issue and verify my work)