Tooltip: Make tooltip use secondary background color for legible links (#48748)

This commit is contained in:
Josh Hunt
2022-05-05 14:28:45 +01:00
committed by GitHub
parent 08bee1e682
commit af57804513
5 changed files with 10 additions and 15 deletions
@@ -75,8 +75,8 @@ export function createComponents(colors: ThemeColors, shadows: ThemeShadows): Th
background: input.background,
},
tooltip: {
background: colors.mode === 'light' ? '#555' : '#35383e',
text: colors.mode === 'light' ? '#FFF' : colors.text.primary,
background: colors.background.secondary,
text: colors.text.primary,
},
dashboard: {
background: colors.background.canvas,
@@ -188,6 +188,9 @@ function getStyles(theme: GrafanaTheme2) {
a {
color: ${theme.colors.text.link};
}
a:hover {
text-decoration: underline;
}
`;