Skip to content

[EuiFlyoutMenu] Increase height to match Kibana AppHeader compact mode #10093

Description

@ryankeairns

Problem Statement

The EuiFlyout Menu component is shorter than the compact mode AppHeader used in the new Kibana design. This causes visual misalignment between the header and its flyout menu.

Image

Proposed Solution

Increase the height of the EuiFlyout Menu so it matches the Kibana AppHeader compact mode: 48px height plus a 1px border. Ensure the flyout's compact variant uses these dimensions and update any related styles, tokens, and stories/tests as needed.

Use Case

Used in Kibana's new AppHeader where compact mode expects visual alignment between the header and flyout menus. Matching heights will improve visual consistency across the product.

Value / Impact

  • Consistent UI alignment between AppHeader and flyout menus.
  • Improves visual polish for Kibana consumers and other EUI users adopting the compact header variant.
  • Low risk, targeted styling change, but should be verified across components using EuiFlyout.

Urgency

Medium — desirable for alignment with the new AppHeader, but not blocking other work.

Do alternatives or workarounds exist?

Workarounds include custom styling in Kibana to override EuiFlyoutMenu height in our chat UIs.

Related code or customizations

Kibana AppHeader compact mode height: 48px + 1px border - we want these to align visually.

Activity

  1. changed the title [-]Increase EuiFlyout Menu height to match Kibana AppHeader compact mode[/-] [+][EuiFlyoutMenu] Increase height to match Kibana AppHeader compact mode[/+] on Sep 28, 2026
  2. chrisbmar commented on Sep 28, 2026

    @chrisbmar
    /**
     * Temporary override so the flyout menu row matches the 48px compact app header. EUI has no prop for
     * the row height, its controls group only spans its content height (so it's stretched to re-centre the
     * actions), and the close button is absolutely positioned outside that group, so it's re-centred
     * separately. Remove once EUI supports a configurable menu row height.
     */
    export const flyoutMenuRowStyles = ({ euiTheme }: UseEuiTheme) => {
      const rowHeight = euiTheme.size.xxxl;
      const closeButtonHeight = euiTheme.size.l;
    
      return css`
        .euiFlyoutMenu {
          block-size: ${rowHeight};
        }
    
        .euiFlyoutMenu > .euiFlexGroup {
          block-size: 100%;
        }
    
        .euiFlyoutMenu .euiFlyout__closeButton {
          inset-block-start: calc(
            (${rowHeight} - ${euiTheme.border.width.thin} - ${closeButtonHeight}) / 2
          );
        }
      `;
    };
    

    This is the sort of code that we're having to add to get around this for now 👎🏽 please let me know when we've updated this to be dynamic based on sizing like s, m etc. so that we can take advantage of that API when it's available, cheers.

    Implemented as part of this PR: elastic/kibana#293893

  3. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions