From 43ae41490985657b2b0dc17a04e8a3452e1fb65a Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 21 Aug 2024 23:47:09 -0700 Subject: [PATCH 1/2] Add `flush` to `TopNavControlLinkData` Signed-off-by: Miki --- .../navigation/public/top_nav_menu/top_nav_control_data.tsx | 1 + .../navigation/public/top_nav_menu/top_nav_control_item.tsx | 2 ++ 2 files changed, 3 insertions(+) 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} From 9542ac11fe3b9e99bc556c65ecafd599a30e3cc6 Mon Sep 17 00:00:00 2001 From: "opensearch-changeset-bot[bot]" <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 07:07:42 +0000 Subject: [PATCH 2/2] Changeset file for PR #7801 created/updated --- changelogs/fragments/7801.yml | 2 ++ 1 file changed, 2 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