Skip to content

Commit

Permalink
Add flush to TopNavControlLinkData (#7801) (#7809)
Browse files Browse the repository at this point in the history
* Add `flush` to `TopNavControlLinkData`



* Changeset file for PR #7801 created/updated

---------



(cherry picked from commit a5882ee)

Signed-off-by: Miki <miki@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent 7fba6ac commit 702136b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7801.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feat:
- Add `flush` to `TopNavControlLinkData` ([#7801](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7801))
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type TopNavControlLinkData = TopNavControlButtonOrLinkOrIconData &
iconSide?: EuiHeaderLinkProps['iconSide'];
iconGap?: EuiHeaderLinkProps['iconGap'];
color?: EuiHeaderLinkProps['color'];
flush?: EuiHeaderLinkProps['flush'];
controlType: 'link';
},
'href' | 'run'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function TopNavControlItem(props: TopNavControlData) {
{props.description}
{links?.map((linkProps) => (
<>
{' '}
{/* @ts-ignore using an undefined property to prevent abuse */}
<TopNavControlItem {...linkProps} sizeOverride="xs" />
</>
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 702136b

Please sign in to comment.