Skip to content

Commit

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

Signed-off-by: Miki <[email protected]>

* Changeset file for PR #7801 created/updated

---------

Signed-off-by: Miki <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
AMoo-Miki and opensearch-changeset-bot[bot] authored Aug 22, 2024
1 parent 6537bfb commit a5882ee
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 a5882ee

Please sign in to comment.