Commit 84031649 by Tobias Skarhed Committed by GitHub

LoginPage: Fix hover color for service buttons (#25009)

* Set explicit hover color

* Use cx
parent b5bf54f5
import React from 'react'; import React from 'react';
import config from 'app/core/config'; import config from 'app/core/config';
import { css } from 'emotion'; import { css, cx } from 'emotion';
import { useStyles } from '@grafana/ui'; import { useStyles } from '@grafana/ui';
import { GrafanaTheme } from '@grafana/data'; import { GrafanaTheme } from '@grafana/data';
...@@ -71,6 +71,9 @@ const getServiceStyles = (theme: GrafanaTheme) => { ...@@ -71,6 +71,9 @@ const getServiceStyles = (theme: GrafanaTheme) => {
color: #d8d9da; color: #d8d9da;
margin: 0 0 ${theme.spacing.md}; margin: 0 0 ${theme.spacing.md};
width: 100%; width: 100%;
&:hover {
color: #fff;
}
`, `,
divider: { divider: {
base: css` base: css`
...@@ -128,7 +131,7 @@ export const LoginServiceButtons = () => { ...@@ -128,7 +131,7 @@ export const LoginServiceButtons = () => {
return ( return (
<a <a
key={key} key={key}
className={`${styles.button} btn btn-medium btn-service btn-service--${service.className || key}`} className={cx(`btn btn-medium btn-service btn-service--${service.className || key}`, styles.button)}
href={`login/${service.hrefName ? service.hrefName : key}`} href={`login/${service.hrefName ? service.hrefName : key}`}
target="_self" target="_self"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment