wip: highlight background color for group menu items

This commit is contained in:
Patrick Rodacker 2019-03-19 14:10:21 +01:00
parent 2c4238c199
commit b6291da8aa

View File

@ -67,6 +67,8 @@ function menuItemActiveBg(depth, { theme }): string {
return darken(0.1, theme.menu.backgroundColor); return darken(0.1, theme.menu.backgroundColor);
} else if (depth === 1) { } else if (depth === 1) {
return darken(0.05, theme.menu.backgroundColor); return darken(0.05, theme.menu.backgroundColor);
} else if (depth === 0 && theme.options.collapseTagGroups) {
return darken(0.15, theme.menu.backgroundColor);
} else { } else {
return ''; return '';
} }
@ -99,6 +101,9 @@ export const menuItemDepth = {
padding-bottom: 0; padding-bottom: 0;
cursor: default; cursor: default;
color: ${props => props.theme.menu.textColor}; color: ${props => props.theme.menu.textColor};
&:hover {
color: ${props => props.theme.colors.primary.main};
}
`, `,
1: css` 1: css`
font-size: 0.929em; font-size: 0.929em;