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

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

* Change colors
This commit is contained in:
Josh Hunt 2022-05-20 18:54:07 +01:00 committed by GitHub
parent 6fe28854bc
commit 426ca2999e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -22,6 +22,15 @@ export const getFieldValidationMessageStyles = stylesFactory((theme: GrafanaThem
border-radius: ${theme.shape.borderRadius()}; border-radius: ${theme.shape.borderRadius()};
position: relative; position: relative;
display: inline-block; display: inline-block;
a {
color: ${theme.colors.error.contrastText};
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
`; `;
return { return {

View File

@ -187,11 +187,12 @@ function getStyles(theme: GrafanaTheme2) {
} }
a { a {
color: ${theme.colors.text.link}; color: ${tooltipText};
text-decoration: underline;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: none;
} }
`; `;
} }