Polish save as button and overlay

pull/10967/head
Alex P 2019-01-10 11:43:49 -08:00
parent c65e98b6b4
commit fa8ac42ef8
2 changed files with 13 additions and 14 deletions

View File

@ -1,8 +1,3 @@
.save-as--close-overlay {
cursor: pointer;
font-weight: 300;
}
.save-as--options {
display: flex;
margin-top: -10px;

View File

@ -4,12 +4,14 @@ import React, {PureComponent} from 'react'
// Components
import SaveAsCellForm from 'src/dataExplorer/components/SaveAsCellForm'
import {
IconFont,
Button,
Radio,
OverlayTechnology,
OverlayBody,
OverlayHeading,
OverlayContainer,
ComponentColor,
} from 'src/clockface'
// Styles
@ -38,17 +40,19 @@ class SaveAsButton extends PureComponent<Props, State> {
return (
<>
<Button text="Save As..." onClick={this.handleShowOverlay} />
<Button
icon={IconFont.Export}
text="Save As"
onClick={this.handleShowOverlay}
color={ComponentColor.Success}
titleText="Save your query as a Dashboard Cell or a Task"
/>
<OverlayTechnology visible={isOverlayVisible}>
<OverlayContainer>
<OverlayHeading title="Save As">
<div className="save-as--close-overlay">
<span
className="icon remove"
onClick={this.handleHideOverlay}
/>
</div>
</OverlayHeading>
<OverlayHeading
title="Save As"
onDismiss={this.handleHideOverlay}
/>
<OverlayBody>
<div className="save-as--options">
<Radio>