@grafana/ui: Fix login icon (#23732)

* Fix sign in button

* Fix modal button in button
This commit is contained in:
Ivana Huckova 2020-04-21 10:55:48 +02:00 committed by GitHub
parent 1b8d669ac0
commit df60dbd749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 11 deletions

View File

@ -52,6 +52,7 @@ export type IconName =
| 'circle'
| 'arrow-up'
| 'arrow-from-right'
| 'arrow-from-left'
| 'keyboard'
| 'search'
| 'chart-line'
@ -162,6 +163,7 @@ export const getAvailableIcons = (): IconName[] => [
'circle',
'arrow-up',
'arrow-from-right',
'arrow-from-left',
'keyboard',
'search',
'chart-line',

View File

@ -9,7 +9,7 @@ export const SignIn: FC<any> = ({ url }) => {
<div className="sidemenu-item">
<a href={loginUrl} className="sidemenu-link" target="_self">
<span className="icon-circle sidemenu-icon">
<Icon name="sign-in-alt" />
<Icon name="arrow-from-left" size="xl" />
</span>
</a>
<a href={loginUrl} target="_self">

View File

@ -13,7 +13,8 @@ exports[`Render should render component 1`] = `
className="icon-circle sidemenu-icon"
>
<Icon
name="sign-in-alt"
name="arrow-from-left"
size="xl"
/>
</span>
</a>

View File

@ -180,9 +180,7 @@ export class ApiKeysPage extends PureComponent<Props, any> {
return (
<SlideDown in={isAdding}>
<div className="cta-form">
<button className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding}>
<IconButton name="times" />
</button>
<IconButton name="times" className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding} />
<h5>Add API Key</h5>
<form className="gf-form-group" onSubmit={this.onAddApiKey}>
<div className="gf-form-inline">

View File

@ -49,14 +49,11 @@ exports[`Render should render CTA if there are no API keys 1`] = `
<div
className="cta-form"
>
<button
<IconButton
className="cta-form__close btn btn-transparent"
name="times"
onClick={[Function]}
>
<IconButton
name="times"
/>
</button>
/>
<h5>
Add API Key
</h5>