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 config from 'app/core/config';
import { css } from 'emotion';
import { css, cx } from 'emotion';
import { useStyles } from '@grafana/ui';
import { GrafanaTheme } from '@grafana/data';
......@@ -71,6 +71,9 @@ const getServiceStyles = (theme: GrafanaTheme) => {
color: #d8d9da;
margin: 0 0 ${theme.spacing.md};
width: 100%;
&:hover {
color: #fff;
}
`,
divider: {
base: css`
......@@ -128,7 +131,7 @@ export const LoginServiceButtons = () => {
return (
<a
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}`}
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