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

@@ -36,8 +36,8 @@ export default function OptionDescription({ option }: { option: ColumnMeta }) {
<span className="m-r-5 option-label">{option.label}</span>
{option.description && (
<InfoTooltipWithTrigger
className="m-r-5 text-muted"
icon="question-circle-o"
className="m-r-5"
type="question"
tooltip={option.description}
label={`descr-${option.label}`}
/>

View File

@@ -71,7 +71,7 @@ ${helperDescriptions
<div>
{props.label}
<InfoTooltipWithTrigger
iconsStyle={{ marginLeft: theme.sizeUnit }}
iconStyle={{ marginLeft: theme.sizeUnit }}
tooltip={<SafeMarkdown source={helpersTooltipContent} />}
/>
</div>

View File

@@ -48,7 +48,7 @@ const StyleControl = (props: CustomControlConfig<StyleCustomControlProps>) => {
<div>
{props.label}
<InfoTooltipWithTrigger
iconsStyle={{ marginLeft: theme.sizeUnit }}
iconStyle={{ marginLeft: theme.sizeUnit }}
tooltip={t('You need to configure HTML sanitization to use CSS')}
/>
</div>