fix: add additional ui tweaks (#10275)

* fix: add additional ui tweaks

* use fa fa-close class for x icon

* use new svg icons
This commit is contained in:
Grace Guo
2020-07-15 14:05:30 -07:00
committed by GitHub
parent a94744b984
commit 2f147cfedc
3 changed files with 13 additions and 14 deletions

View File

@@ -29,6 +29,7 @@ import * as Actions from '../actions/sqlLab';
import SqlEditor from './SqlEditor';
import { areArraysShallowEqual } from '../../reduxUtils';
import TabStatusIcon from './TabStatusIcon';
import Icon from '../../components/Icon';
const propTypes = {
actions: PropTypes.object.isRequired,
@@ -289,9 +290,13 @@ class TabbedSqlEditors extends React.PureComponent {
const title = (
<>
{qe.title} <TabStatusIcon tabState={state} />{' '}
<span className="close" onClick={() => this.removeQueryEditor(qe)}>
{'×'}
</span>
<Icon
role="button"
tabIndex={0}
cursor="pointer"
name="cancel-x"
onClick={() => this.removeQueryEditor(qe)}
/>
</>
);
const tabTitle = (