Skip to content

Commit

Permalink
fix sub items hover
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Carvalho authored and Tiago Carvalho committed Jun 28, 2024
1 parent 7dc9609 commit 438b3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/grafana-data/src/themes/createColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
icons: palette.cmDarkIcons,
navBar: palette.cmDarkNavBar,
text: palette.cmDarkText,
hover: alpha(palette.cmDarkText, 0.05),
}

contrastThreshold = 3;
Expand Down Expand Up @@ -262,6 +263,7 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
icons: palette.cmLightIcons,
navBar: palette.cmLightNavBar,
text: palette.cmLightText,
hover: alpha(palette.cmLightText, 0.05),
}

contrastThreshold = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const getStyles = (theme: GrafanaTheme2, isActive: Props['isActive'], isChild: P
width: '100%',
'&:hover, &:focus-visible': {
...(isChild && {
background: theme.colors.emphasize(theme.colors.background.primary, 0.03),
background: theme.colors.cm.hover,
}),
textDecoration: 'underline',
color: theme.colors.cm.text,
Expand Down

0 comments on commit 438b3bd

Please # to comment.