From 1b14678b3866b4cad0fee676c05e5ce2fc08ec45 Mon Sep 17 00:00:00 2001 From: sayuree <52072402+sayuree@users.noreply.github.com> Date: Tue, 18 Apr 2023 05:11:43 +0600 Subject: [PATCH] Add tooltip to help icon (#3626) * Add tooltip to help icon Signed-off-by: sabina.zaripova Add tooltip to menu icon Signed-off-by: sabina.zaripova --- CHANGELOG.md | 1 + .../header/__snapshots__/header.test.tsx.snap | 46 +++++++++++++++++++ .../header_help_menu.test.tsx.snap | 40 ++++++++++++++++ src/core/public/chrome/ui/header/header.tsx | 8 +++- .../chrome/ui/header/header_help_menu.tsx | 8 ++++ 5 files changed, 102 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d272f3b3459..2e92e153f38d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -224,6 +224,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [VisBuilder] Rename "Histogram" to "Bar" in visualization type picker ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401)) - [Table Visualization] Fix an issue preventing sorting the first column ([#2828](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2828)) - Temporary workaround for task-kill exceptions on Windows when it is passed a pid for a process that is already dead ([#2842](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2842)) +- Add clarifying tooltips to header navigation ([#3573](https://github.com/opensearch-project/OpenSearch-Dashboards/issues/3573)) ### 🚞 Infrastructure diff --git a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap index c7e883d9b00b..6486e207ed37 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap @@ -2798,6 +2798,7 @@ exports[`Header handles visibility and lock changes 1`] = ` > @@ -2842,11 +2843,13 @@ exports[`Header handles visibility and lock changes 1`] = ` > @@ -5416,6 +5419,11 @@ exports[`Header handles visibility and lock changes 1`] = ` size="m" type="questionInCircle" /> + } closePopover={[Function]} @@ -5467,6 +5475,10 @@ exports[`Header handles visibility and lock changes 1`] = ` + @@ -5514,6 +5526,17 @@ exports[`Header handles visibility and lock changes 1`] = ` size="m" /> + + + @@ -8117,6 +8140,7 @@ exports[`Header renders condensed header 1`] = ` > @@ -8161,11 +8185,13 @@ exports[`Header renders condensed header 1`] = ` > @@ -10652,6 +10678,11 @@ exports[`Header renders condensed header 1`] = ` size="m" type="questionInCircle" /> + } closePopover={[Function]} @@ -10703,6 +10734,10 @@ exports[`Header renders condensed header 1`] = ` + @@ -10750,6 +10785,17 @@ exports[`Header renders condensed header 1`] = ` size="m" /> + + + diff --git a/src/core/public/chrome/ui/header/__snapshots__/header_help_menu.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/header_help_menu.test.tsx.snap index 835c2d8d4a4e..5406fbf6abaa 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/header_help_menu.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/header_help_menu.test.tsx.snap @@ -1626,6 +1626,11 @@ exports[`Header help menu hides survey link 1`] = ` size="m" type="questionInCircle" /> + } closePopover={[Function]} @@ -1677,6 +1682,10 @@ exports[`Header help menu hides survey link 1`] = ` + @@ -1724,6 +1733,17 @@ exports[`Header help menu hides survey link 1`] = ` size="m" /> + + + @@ -3782,6 +3802,11 @@ exports[`Header help menu renders survey link 1`] = ` size="m" type="questionInCircle" /> + } closePopover={[Function]} @@ -3833,6 +3858,10 @@ exports[`Header help menu renders survey link 1`] = ` + @@ -3880,6 +3909,17 @@ exports[`Header help menu renders survey link 1`] = ` size="m" /> + + + diff --git a/src/core/public/chrome/ui/header/header.tsx b/src/core/public/chrome/ui/header/header.tsx index 917d1ebd4c46..a78371f4f264 100644 --- a/src/core/public/chrome/ui/header/header.tsx +++ b/src/core/public/chrome/ui/header/header.tsx @@ -173,7 +173,13 @@ export function Header({ aria-controls={navId} ref={toggleCollapsibleNavRef} > - + diff --git a/src/core/public/chrome/ui/header/header_help_menu.tsx b/src/core/public/chrome/ui/header/header_help_menu.tsx index 6f536184edc1..f0be769937f5 100644 --- a/src/core/public/chrome/ui/header/header_help_menu.tsx +++ b/src/core/public/chrome/ui/header/header_help_menu.tsx @@ -331,6 +331,14 @@ class HeaderHelpMenuUI extends Component { onClick={this.onMenuButtonClick} > + );