refactor(InfoTooltipWithTrigger): Replace support for fa icons with antd5 icons (#33256)

- Define and centralized tooltip icon variants (info, warning, notice, error, question)
- Replace old FontAwesome icons
- Update tests to reflect the new icons and variant behavior
This commit is contained in:
Enzo Martellucci
2025-05-05 18:07:15 +02:00
committed by GitHub
parent 49bcf79f71
commit 9da62ed63a
23 changed files with 190 additions and 113 deletions

View File

@@ -23,8 +23,8 @@ import {
addInfoToast,
addDangerToast,
} from 'src/SqlLab/actions/sqlLab';
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
import { Button } from 'src/components';
import { Button, IconTooltip } from 'src/components';
import { Icons } from 'src/components/Icons';
import { exploreChart } from 'src/explore/exploreUtils';
import { SqlLabRootState } from 'src/SqlLab/types';
@@ -82,11 +82,8 @@ const ExploreCtasResultsButton = ({
onClick={visualize}
tooltip={t('Explore the result set in the data exploration view')}
>
<InfoTooltipWithTrigger
icon="line-chart"
placement="top"
label={t('explore')}
/>{' '}
<IconTooltip placement="top" tooltip={t('Explore')} />
<Icons.LineChartOutlined iconSize="m" />
{t('Explore')}
</Button>
);