mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LoginPage: Fix hover color for service buttons (#25009)
* Set explicit hover color * Use cx
This commit is contained in:
parent
b5bf54f5ac
commit
84031649e3
@ -1,6 +1,6 @@
|
||||
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"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user