Skip to content

Commit

Permalink
chore: update component
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <tygao@amazon.com>
  • Loading branch information
raintygao committed Apr 19, 2024
1 parent 26f295b commit 8152c91
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions src/core/public/chrome/ui/header/right_navigation_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { EuiButtonIcon } from '@elastic/eui';
import { EuiHeaderSectionItemButton, EuiIcon } from '@elastic/eui';
import React from 'react';
import { CoreStart } from 'src/core/public';

Expand Down Expand Up @@ -35,16 +35,12 @@ export const RightNavigationButton = ({
};

return (
<EuiButtonIcon
iconType={iconType}
<EuiHeaderSectionItemButton
data-test-subj="rightNavigationButton"
aria-label={title}
title={title}
onClick={navigateToApp}
style={{
height: '48px',
minWidth: '48px',
}}
/>
>
<EuiIcon type={iconType} size="m" title={title} color="primary" />
</EuiHeaderSectionItemButton>
);
};

0 comments on commit 8152c91

Please sign in to comment.