From 63c2508b145b11d39dd6c0ab76056cafa09c9a8e Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Thu, 14 Nov 2019 17:17:03 +0000 Subject: [PATCH] Remove background opacity in menus; improving accessibility/readability --- CRM/Core/Resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 44c765d60f73..2c4f211c431e 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -868,7 +868,7 @@ public static function renderMenubarStylesheet(GenericHookEvent $e) { '$breakMin' => $params['breakpoint'] . 'px', '$breakMax' => ($params['breakpoint'] - 1) . 'px', '$menubarColor' => $menubarColor, - '$menuItemColor' => $params['menuItemColor'] ?? 'rgba(' . implode(', ', CRM_Utils_Color::getRgb($menubarColor)) . ", .9)", + '$menuItemColor' => $params['menuItemColor'] ?? $menubarColor, '$highlightColor' => $params['highlightColor'] ?? CRM_Utils_Color::getHighlight($menubarColor), '$textColor' => $params['textColor'] ?? CRM_Utils_Color::getContrast($menubarColor, '#333', '#ddd'), ];