diff --git a/src-docs/src/views/bottom_bar/bottom_bar.js b/src-docs/src/views/bottom_bar/bottom_bar.js
index c0317d4e97e..4598e151e81 100644
--- a/src-docs/src/views/bottom_bar/bottom_bar.js
+++ b/src-docs/src/views/bottom_bar/bottom_bar.js
@@ -6,10 +6,15 @@ import {
EuiFlexItem,
EuiButton,
EuiButtonEmpty,
+ EuiPopover,
+ EuiContextMenuPanel,
+ EuiContextMenuItem,
} from '../../../../src/components';
export default () => {
const [showBar, setShowBar] = useState(false);
+ const [showBarPopover, setShowBarPopover] = useState(false);
+ const closePopover = () => setShowBarPopover(false);
const button = (
setShowBar((show) => !show)}>
@@ -25,9 +30,33 @@ export default () => {
-
- Help
-
+ setShowBarPopover(!showBarPopover)}
+ >
+ Help
+
+ }
+ panelPaddingSize="none"
+ repositionOnScroll
+ >
+
+ Link A
+ ,
+
+ Link B
+ ,
+ ]}
+ />
+
diff --git a/src-docs/src/views/context_menu/content_panel.tsx b/src-docs/src/views/context_menu/content_panel.tsx
index cf0bd66f49e..c338be7ba69 100644
--- a/src-docs/src/views/context_menu/content_panel.tsx
+++ b/src-docs/src/views/context_menu/content_panel.tsx
@@ -65,10 +65,20 @@ export default () => {
anchorPosition="downLeft"
>
-
+
Add a field to this data view
-
+
Manage this data view
diff --git a/src-docs/src/views/context_menu/context_menu.js b/src-docs/src/views/context_menu/context_menu.js
index 38964c9bb5c..b6460eb09e8 100644
--- a/src-docs/src/views/context_menu/context_menu.js
+++ b/src-docs/src/views/context_menu/context_menu.js
@@ -43,9 +43,7 @@ export default () => {
{
name: 'Handle an onClick',
icon: 'search',
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
{
name: 'Go to a link',
@@ -64,17 +62,17 @@ export default () => {
toolTipTitle: 'Optional tooltip',
toolTipContent: 'Optional content for a tooltip',
toolTipPosition: 'right',
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
{
name: 'Use an app icon',
icon: 'visualizeApp',
+ onClick: closePopover,
},
{
name: 'Pass an icon as a component to customize it',
icon: ,
+ onClick: closePopover,
},
{
name: 'Disabled option',
@@ -82,9 +80,7 @@ export default () => {
toolTipContent: 'For reasons, this item is disabled',
toolTipPosition: 'right',
disabled: true,
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
],
},
@@ -96,9 +92,7 @@ export default () => {
{
name: 'PDF reports',
icon: 'user',
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
{
name: 'Embed code',
@@ -108,9 +102,7 @@ export default () => {
{
name: 'Permalinks',
icon: 'user',
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
],
},
diff --git a/src-docs/src/views/context_menu/context_menu_with_content.js b/src-docs/src/views/context_menu/context_menu_with_content.js
index db18ad83718..0cc869e2f69 100644
--- a/src-docs/src/views/context_menu/context_menu_with_content.js
+++ b/src-docs/src/views/context_menu/context_menu_with_content.js
@@ -62,9 +62,7 @@ export default () => {
{
name: 'Show fullscreen',
icon: ,
- onClick: () => {
- closePopover();
- },
+ onClick: closePopover,
},
{
isSeparator: true,
diff --git a/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap b/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap
index bfa5ecba192..6fbdfc5735a 100644
--- a/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap
+++ b/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap
@@ -50,7 +50,7 @@ exports[`CollapsedItemActions render with href and _target provided 1`] = `
popoverRef={[Function]}
repositionToCrossAxis={true}
>
-