GrafanaUI: Fix color of links in error Tooltips in light theme (#49327) (#49345)

* GrafanaUI: Fix color of links in input validation errors in light theme

* Change colors

(cherry picked from commit 426ca2999e)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-05-20 19:21:49 +01:00
committed by GitHub
co-authored by Josh Hunt
parent 954fbb0651
commit fc736471ba
2 changed files with 12 additions and 2 deletions
@@ -22,6 +22,15 @@ export const getFieldValidationMessageStyles = stylesFactory((theme: GrafanaThem
border-radius: ${theme.shape.borderRadius()};
position: relative;
display: inline-block;
a {
color: ${theme.colors.error.contrastText};
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
`;
return {
@@ -187,11 +187,12 @@ function getStyles(theme: GrafanaTheme2) {
}
a {
color: ${theme.colors.text.link};
color: ${tooltipText};
text-decoration: underline;
}
a:hover {
text-decoration: underline;
text-decoration: none;
}
`;
}