Skip to content

Commit

Permalink
Merge pull request #15847 from artfulrobot/opaque-menu
Browse files Browse the repository at this point in the history
Remove background opacity in menus; improving accessibility/readability
  • Loading branch information
colemanw authored Nov 22, 2019
2 parents 53e972a + 63c2508 commit b2f8d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
Expand Down

0 comments on commit b2f8d6f

Please sign in to comment.