Closed (fixed)
Project:
Admin Toolbar
Version:
3.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2026 at 20:55 UTC
Updated:
27 Nov 2026 at 13:30 UTC
Jump to comment: Most recent


Comments
Comment #4
ishfaqafridi85 commentedOpened MR !231. The cause is that Drupal 12's default admin theme highlights the active autocomplete item with a light tint (--admin-color-bg-item-hover) while Admin Toolbar Search forces white link text on it.
AI disclosure: Claude Code (Anthropic) assisted with the code and the local test setup; I reviewed and tested the change locally.
Comment #5
ressaThank you for a fast MR @ishfaqafridi85, it works perfectly, and the background is again dark blue, with plenty of contrast.
Comment #6
dydave commentedWe need this!
I noticed this as well, while testing admin_toolbar_search 👍
The MR is super clean and I like the way its value was abstracted with a CSS variable.
We should be able to get this merged and included in the next release 3.7.0. 👌
Comment #8
dydave commentedMerged, thanks everyone! 🥳
The active (hovered or keyboard selected) Admin Toolbar Search suggestion now has an explicit dark blue background (
--admin-toolbar-search-item-active-background,#003ecc), set in the module's CSS, so the white link text no longer depends on the admin theme's autocomplete colors. This fixes the low contrast on the light purple highlight of the Drupal 12 default admin theme. Drupal 10 and 11 look the same as before, since the color is Claro's blue, and white text on it has a contrast ratio of about 8.2:1.Tested with the default admin theme and with Gin. ✅
Thanks to @ishfaqafridi85 for the clean MR, to @ressa for reporting and testing it, and to everyone who reviewed.
The fix will be included in the next release.
Comment #10
ressaFantastic! Thank you @ishfaqafridi85 and @dydave for fixing and committing this bug fix so fast.