Skip to content

Commit

Permalink
[EuiHeaderLinks] Add xxs gutterSize (#8079)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Oct 15, 2024
1 parent caa5db1 commit 4259443
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/eui/changelogs/upcoming/8079.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `EuiHeaderLinks` with a new `xxs` gutter size
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ exports[`EuiHeaderLinks gutterSize xs is rendered 1`] = `
</nav>
`;

exports[`EuiHeaderLinks gutterSize xxs is rendered 1`] = `
<nav
aria-label="App menu"
class="euiHeaderLinks emotion-euiHeaderLinks"
>
<div
class="euiHeaderLinks__list emotion-euiHeaderLinks__list-xxs-EuiHeaderLinks"
/>
</nav>
`;

exports[`EuiHeaderLinks is rendered 1`] = `
<nav
aria-label="aria-label"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export const euiHeaderLinksStyles = ({ euiTheme }: UseEuiTheme) => {
align-items: center;
`,
gutterSizes: {
xxs: css`
gap: ${euiTheme.size.xs};
`,
xs: css`
gap: ${euiTheme.size.s};
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { EuiHideFor, EuiShowFor } from '../../responsive';

import { euiHeaderLinksStyles } from './header_links.styles';

export const GUTTER_SIZES = ['xs', 's', 'm', 'l'] as const;
export const GUTTER_SIZES = ['xxs', 'xs', 's', 'm', 'l'] as const;
type EuiHeaderLinksGutterSize = (typeof GUTTER_SIZES)[number];

type EuiHeaderLinksPopoverButtonProps =
Expand Down

0 comments on commit 4259443

Please sign in to comment.