From e0a60cf459b9ca21b98c850e3ae553a6aa8bb7cc Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 10 Nov 2021 17:34:38 +0000 Subject: [PATCH] Navigation: Set dropdown text color to primary to match previous behaviour (#41560) --- public/app/core/components/NavBar/NavBarDropdown.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/app/core/components/NavBar/NavBarDropdown.tsx b/public/app/core/components/NavBar/NavBarDropdown.tsx index 24f88c04e57..a3141f56ec1 100644 --- a/public/app/core/components/NavBar/NavBarDropdown.tsx +++ b/public/app/core/components/NavBar/NavBarDropdown.tsx @@ -44,6 +44,7 @@ const NavBarDropdown = ({ isDivider={child.divider} icon={child.icon as IconName} onClick={child.onClick} + styleOverrides={styles.item} target={child.target} text={child.text} url={child.url} @@ -67,6 +68,7 @@ const getStyles = ( return { header: css` background-color: ${theme.colors.background.secondary}; + color: ${theme.colors.text.primary}; height: ${theme.components.sidemenu.width - (adjustHeightForBorder ? 2 : 1)}px; font-size: ${theme.typography.h4.fontSize}; font-weight: ${theme.typography.h4.fontWeight}; @@ -74,6 +76,9 @@ const getStyles = ( white-space: nowrap; width: 100%; `, + item: css` + color: ${theme.colors.text.primary}; + `, menu: css` background-color: ${theme.colors.background.primary}; border: 1px solid ${theme.components.panel.borderColor};