Navigation: Set dropdown text color to primary to match previous behaviour (#41560)

This commit is contained in:
Ashley Harrison 2021-11-10 17:34:38 +00:00 committed by GitHub
parent b79eab8455
commit e0a60cf459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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};