Tooltip: Make tooltip use secondary background color for legible links (#48748)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user