Creates storybook and tests for Tooltip component (#13184)

This commit is contained in:
Michael S. Molina
2021-02-18 03:51:35 -03:00
committed by GitHub
parent d48b894573
commit fcd443d366
24 changed files with 301 additions and 217 deletions

View File

@@ -21,14 +21,13 @@ import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { styled, t } from '@superset-ui/core';
import { Tooltip } from 'src/common/components/Tooltip';
import { chartPropShape } from '../../dashboard/util/propShapes';
import ExploreActionButtons from './ExploreActionButtons';
import RowCountLabel from './RowCountLabel';
import EditableTitle from '../../components/EditableTitle';
import AlteredSliceTag from '../../components/AlteredSliceTag';
import FaveStar from '../../components/FaveStar';
import TooltipWrapper from '../../components/TooltipWrapper';
import Timer from '../../components/Timer';
import CachedLabel from '../../components/CachedLabel';
import PropertiesModal from './PropertiesModal';
@@ -161,9 +160,9 @@ export class ExploreChartHeader extends React.PureComponent {
onSave={this.props.sliceUpdated}
slice={this.props.slice}
/>
<TooltipWrapper
label="edit-desc"
tooltip={t('Edit chart properties')}
<Tooltip
id="edit-desc-tooltip"
title={t('Edit chart properties')}
>
<span
role="button"
@@ -173,7 +172,7 @@ export class ExploreChartHeader extends React.PureComponent {
>
<i className="fa fa-edit" />
</span>
</TooltipWrapper>
</Tooltip>
{this.props.chart.sliceFormData && (
<AlteredSliceTag
className="altered"