From 84ddf7c777610818db0483d92e6de6b24e8c0587 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 2 May 2024 12:04:57 +0200 Subject: [PATCH 1/2] Remove useless data-state on tooltip --- src/components/Tooltip/Tooltip.tsx | 1 - .../Tooltip/__snapshots__/Tooltip.test.tsx.snap | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 1187a089..809e85b8 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -160,7 +160,6 @@ function TooltipAnchor({ children }: Readonly): JSX.Element { context.getReferenceProps({ ref, ...children.props, - "data-state": context.open ? "open" : "closed", }), ); } diff --git a/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap b/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap index 19d9982a..abc718a4 100644 --- a/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap +++ b/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap @@ -47,7 +47,6 @@ exports[`Tooltip > opens tooltip on focus where trigger is non interactive 1`] = style="padding: 100px;" >