Navigation: Make expandable menu items fill content properly (#47264)

This commit is contained in:
Ashley Harrison
2022-04-04 14:48:58 +01:00
committed by GitHub
parent 56176e320b
commit 962eba39ac
2 changed files with 4 additions and 2 deletions
@@ -32,10 +32,10 @@ export function NavBarItemWithoutMenu({
const content = highlightText ? (
<NavFeatureHighlight>
<span className={styles.icon}>{children}</span>
<div className={styles.icon}>{children}</div>
</NavFeatureHighlight>
) : (
<span className={styles.icon}>{children}</span>
<div className={styles.icon}>{children}</div>
);
const elStyle = cx(styles.element, elClassName);
@@ -178,6 +178,7 @@ const getNavItemStyles = (theme: GrafanaTheme2) => ({
alignItems: 'center',
}),
fullWidth: css({
height: '100%',
width: '100%',
}),
iconContainer: css({
@@ -188,6 +189,7 @@ const getNavItemStyles = (theme: GrafanaTheme2) => ({
gridAutoFlow: 'column',
gridTemplateColumns: `${theme.spacing(7)} auto`,
alignItems: 'center',
height: '100%',
}),
linkText: css({
fontSize: theme.typography.pxToRem(14),