Skip to content

Commit

Permalink
fix: make panel top nav menu item button full width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinashakirova committed Nov 19, 2024
1 parent 4f96b85 commit c04177e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ export function TopNavMenuItem(props: TopNavMenuData & { isMobileMenu?: boolean
</EuiToolTip>
) : props.emphasize ? (
// fill is not compatible with EuiHeaderLink
<EuiButton size="s" {...commonButtonProps} fill={props.fill ?? true}>
<EuiButton
size={!props.isMobileMenu ? 's' : undefined}
fullWidth={props.isMobileMenu}
{...commonButtonProps}
fill={props.fill ?? true}
>
{getButtonContainer()}
</EuiButton>
) : (
Expand Down

0 comments on commit c04177e

Please sign in to comment.