From 929a40985c205a05cc61087cad738ab12cee47a9 Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Mon, 13 May 2024 14:08:46 +0000 Subject: [PATCH] feat: allow focusing disabled buttons and displaying tooltips (#1082) Signed-off-by: Peter Makowski --- src/components/Button/Button.stories.mdx | 20 +++++++++++++++++++ src/components/Button/Button.test.tsx | 15 ++++---------- src/components/Button/Button.tsx | 6 ++---- .../ContextualMenu/ContextualMenu.test.tsx | 4 +++- .../TablePagination.test.tsx.snap | 8 ++++---- 5 files changed, 33 insertions(+), 20 deletions(-) diff --git a/src/components/Button/Button.stories.mdx b/src/components/Button/Button.stories.mdx index d934ad293..70a68bcae 100644 --- a/src/components/Button/Button.stories.mdx +++ b/src/components/Button/Button.stories.mdx @@ -1,6 +1,7 @@ import { ArgsTable, Canvas, Meta, Story } from "@storybook/addon-docs"; import Button, { ButtonAppearance } from "./Button"; +import Tooltip from "../Tooltip"; + + + + {(args) => ( +
+ +
+ )} +
+
+ diff --git a/src/components/Button/Button.test.tsx b/src/components/Button/Button.test.tsx index 8b61e4249..0861f6e01 100644 --- a/src/components/Button/Button.test.tsx +++ b/src/components/Button/Button.test.tsx @@ -37,21 +37,14 @@ describe("Button ", () => { const onClick = jest.fn(); render(