Skip to content

Commit ca31b35

Browse files
committed
fix: fix search tooltip
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
1 parent 8f1b2e8 commit ca31b35

1 file changed

Lines changed: 20 additions & 18 deletions

File tree

web/src/components/AdvancedSearchForm.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -263,25 +263,27 @@ export const AdvancedSearchForm: React.FC<AdvancedSearchFormProps> = ({
263263
</FormGroup>
264264

265265
<ActionGroup>
266-
<Tooltip
267-
content={
268-
!isValid
269-
? t('Fix validation errors before searching')
270-
: hasChanged
271-
? t('Update the correlation graph')
272-
: t('Correlation graph already matches search')
273-
}
274-
>
275-
<Button
276-
type="submit"
277-
variant="primary"
278-
isAriaDisabled={!hasChanged || !isValid}
279-
size="sm"
266+
<div>
267+
<Tooltip
268+
content={
269+
!isValid
270+
? t('Fix validation errors before searching')
271+
: hasChanged
272+
? t('Update the correlation graph')
273+
: t('Correlation graph already matches search')
274+
}
280275
>
281-
{t('Search')}
282-
</Button>
283-
</Tooltip>
284-
<Button variant="secondary" onClick={onCancel}>
276+
<Button
277+
type="submit"
278+
variant="primary"
279+
isAriaDisabled={!hasChanged || !isValid}
280+
size="sm"
281+
>
282+
{t('Search')}
283+
</Button>
284+
</Tooltip>
285+
</div>
286+
<Button variant="secondary" size="sm" onClick={onCancel}>
285287
{t('Cancel')}
286288
</Button>
287289
</ActionGroup>

0 commit comments

Comments
 (0)