From 702136b79cef690b3b6cc5c961a595270b20c705 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:20:46 -0700 Subject: [PATCH] Add `flush` to `TopNavControlLinkData` (#7801) (#7809) * Add `flush` to `TopNavControlLinkData` * Changeset file for PR #7801 created/updated --------- (cherry picked from commit a5882ee2f5cc3ef5b9fa81451a4c6167eb6ed90f) Signed-off-by: Miki Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/7801.yml | 2 ++ .../navigation/public/top_nav_menu/top_nav_control_data.tsx | 1 + .../navigation/public/top_nav_menu/top_nav_control_item.tsx | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/7801.yml diff --git a/changelogs/fragments/7801.yml b/changelogs/fragments/7801.yml new file mode 100644 index 000000000000..c4e0b608d6f6 --- /dev/null +++ b/changelogs/fragments/7801.yml @@ -0,0 +1,2 @@ +feat: +- Add `flush` to `TopNavControlLinkData` ([#7801](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7801)) \ No newline at end of file diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_control_data.tsx b/src/plugins/navigation/public/top_nav_menu/top_nav_control_data.tsx index 7c57c62a35f2..505e410f7b23 100644 --- a/src/plugins/navigation/public/top_nav_menu/top_nav_control_data.tsx +++ b/src/plugins/navigation/public/top_nav_menu/top_nav_control_data.tsx @@ -35,6 +35,7 @@ export type TopNavControlLinkData = TopNavControlButtonOrLinkOrIconData & iconSide?: EuiHeaderLinkProps['iconSide']; iconGap?: EuiHeaderLinkProps['iconGap']; color?: EuiHeaderLinkProps['color']; + flush?: EuiHeaderLinkProps['flush']; controlType: 'link'; }, 'href' | 'run' diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_control_item.tsx b/src/plugins/navigation/public/top_nav_menu/top_nav_control_item.tsx index 9d801f6e1949..2499ae7dd3c4 100644 --- a/src/plugins/navigation/public/top_nav_menu/top_nav_control_item.tsx +++ b/src/plugins/navigation/public/top_nav_menu/top_nav_control_item.tsx @@ -60,6 +60,7 @@ export function TopNavControlItem(props: TopNavControlData) { {props.description} {links?.map((linkProps) => ( <> + {' '} {/* @ts-ignore using an undefined property to prevent abuse */} @@ -127,6 +128,7 @@ export function TopNavControlItem(props: TopNavControlData) { iconGap={iconGap} iconSize={props.iconSize} color={props.color} + flush={props.flush} className={props.className} href={props.href} target={props.target}