From 03439f3b8211756837e9744fa99c87c5867ea35e Mon Sep 17 00:00:00 2001 From: valerio bartolini Date: Tue, 7 Jun 2022 18:23:58 +0200 Subject: [PATCH 1/3] Tooltip examples are not accessible on dropdown items --- .../react-core/src/components/Dropdown/InternalDropdownItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Dropdown/InternalDropdownItem.tsx b/packages/react-core/src/components/Dropdown/InternalDropdownItem.tsx index d7c14bb908b..c84d601016a 100644 --- a/packages/react-core/src/components/Dropdown/InternalDropdownItem.tsx +++ b/packages/react-core/src/components/Dropdown/InternalDropdownItem.tsx @@ -199,7 +199,7 @@ export class InternalDropdownItem extends React.Component tooltip ? ( - + {childNode} ) : ( From 97373cd70f15abb95bfa77502b8223dd302c7d55 Mon Sep 17 00:00:00 2001 From: valerio bartolini Date: Fri, 10 Jun 2022 01:30:56 +0200 Subject: [PATCH 2/3] refactor(Dropdown): improve solution --- ...ApplicationLauncherSeparator.test.tsx.snap | 2 +- .../ApplicationLauncher.test.tsx.snap | 40 ++++++++++++------- .../Dropdown/InternalDropdownItem.tsx | 7 ++-- .../DropdownSeparator.test.tsx.snap | 2 +- .../__snapshots__/Dropdown.test.tsx.snap | 24 +++++++++-- .../InternalDropdownItem.test.tsx.snap | 10 +++++ .../Dropdown/examples/DropdownBasic.tsx | 6 ++- .../OptionsMenuItem.test.tsx.snap | 3 +- .../__snapshots__/OptionsMenu.test.tsx.snap | 18 ++++++--- .../OverflowMenuDropdownItem.test.tsx.snap | 3 +- 10 files changed, 83 insertions(+), 32 deletions(-) diff --git a/packages/react-core/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap b/packages/react-core/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap index d69c576a95e..2e54ae5be2a 100644 --- a/packages/react-core/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +++ b/packages/react-core/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap @@ -3,7 +3,7 @@ exports[`ApplicationLauncherSeparator should match snapshot 1`] = `
  • Link
  • Disabled Link
  • Separated Link
  • Disabled Link
  • Separated Link
  • Separated Link @@ -109,6 +114,7 @@ exports[`Dropdown alignment breakpoints 1`] = ` >
  • Separated Link @@ -370,6 +381,7 @@ exports[`Dropdown expanded 1`] = ` >
  • Separated Link @@ -722,6 +739,7 @@ exports[`KebabToggle expanded 1`] = ` >