1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

chore: fix interactive demo steps around constraint values (#10451)

https://linear.app/unleash/issue/2-3744/fix-interactive-demo-steps-around-constraint-values

I noticed our interactive demo was broken around the constraint value
steps.

This isn't a great fix, but it at least allows us to complete the
interactive demo for now.
This commit is contained in:
Nuno Góis 2025-08-01 11:56:37 +01:00 committed by GitHub
parent 2629705501
commit 91f138349e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,12 @@ export const DemoStepTooltip = ({
if (step.target === 'body') {
return (
<div {...tooltipProps}>
<div
onClick={(e) => {
e.stopPropagation();
}}
{...tooltipProps}
>
<StyledDialog
open
onClose={(_, r) => {
@ -160,7 +165,12 @@ export const DemoStepTooltip = ({
}
return (
<StyledTooltip {...tooltipProps}>
<StyledTooltip
onClick={(e) => {
e.stopPropagation();
}}
{...tooltipProps}
>
<StyledCloseButton aria-label='close' onClick={onClose}>
<CloseIcon />
</StyledCloseButton>