From 3467758c7647a4a43f63e18ba301de5f71071f2a Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Tue, 11 Aug 2026 14:38:15 +0530 Subject: [PATCH] Toolbar: Restore the color scheme text color on top-level label hover. The default admin bar styles still qualify the `span.ab-label` hover selector with `:not(.mobile)`, while [63009] dropped that qualifier from the matching color scheme rule. The qualifier makes the default rule the more specific of the two, so the hardcoded `#72aee6` wins over the color scheme on every top level node that outputs a label, such as "+ New", the command palette, Comments, and Updates. Drop the qualifier so both rules match the same elements again and the color scheme wins on cascade order, as it does for the surrounding toolbar hover rules. Fixes #65848. --- src/wp-includes/css/admin-bar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index f50c67dd71689..600a0ae45e60b 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -231,7 +231,7 @@ html:lang(he-il) .rtl #wpadminbar * { color: #72aee6; } -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, +#wpadminbar > #wp-toolbar li:hover span.ab-label, #wpadminbar > #wp-toolbar li.hover span.ab-label, /* The adminbar menu may output either links or focusable div elements. */ /* As such, we target the focus state without specifying the element type. */