Skip to content

[Meta][Kibana Workspace Chrome] Improvements for new Kibana layout #8820

Closed

Description

@Dosant

I am working on a new Chrome layout for Kibana using CSS Grid for the Workspace Chrome project. The plan is to create it as a second layout engine and merge the progress into the main branch while keeping it hidden behind a feature flag. While building, I am integrating some workarounds for EUI components to work with the new layout, but I hope we can remove these workarounds before making the new layout ready for production and enabling the flag for users.

The main difference between the old layout and the new layout is that, instead of just a fixed header, we can now have a fixed footer and side navigation on the left and right. To implement this, we’re changing from a fixed display for the header with padding on the top of the body to a grid layout.

Image

Proper detailed figma link: https://www.figma.com/design/10ca4AhnWDkyJklUDXnHg5/Sidebar?node-id=5192-259808&p=f&m=dev

So far, I have found and hacked around the following EUI places that need improvements to work with the new layout. They usually come from areas where EUI uses the variable –euiFixedHeadersOffset, which is no longer sufficient.

🟨 Overlay Flyout

Overlay flyout in EUI is implemented as a body element with –euiFixedHeadersOffset position from the top. In new layout we need to support flyout that are application scoped so they should visually appear inside application area:

Image

Currently I hacked it by overriding the flyout css and by having sidebar index higher the flyout (for appearance animation behind the sidebar):

.kbnBody .euiFlyout:not(.euiCollapsibleNav) {
 // overlay flyout should only cover the application area
 &[class*='right']:not([class*='push']) {
   ${logicalCSS('top', 'var(--kbn-layout--application-top, 0px)')};
   ${logicalCSS('bottom', 'var(--kbn-layout--application-bottom, 0px)')};
   ${logicalCSS('right', 'var(--kbn-layout--application-right, 0px)')};
 }

But we need a proper solution. Possibly allow specifying the parent container for flyouts instead of using the body by default?

🟨 Push Flyout

Similar problem with the push flyout. Right now, it assumes that it pushes the body, but we need it to push the application container instead. The workaround on the Kibana side is a bit more complicated. We listen for the padding-right on the body that EUI sets and apply it to the app container.

Image

Update:

The terrible hack in Kibana will be removed with this simple EUI improvement #8872

This is a good short-term solution, but in the long run, we talked with @tkajtoch about EUI looking into supporting push flyouts related to the specific container instead of body.

🔴 pushMinBreakpoint in flyout

Currently it is relative to the body, but we need it relative to the flyout container.

🔴 Any other useBreakpoint?

No exact use-case or workaround yet, but we most likely need to redo useBreakpoint usage to be relative to some closest “breakpoint” container instead of a body.

✅ EuiCollapsibleNavBeta

This nav is used for solution navigation and serverless. It works well for fixed layout and it would be tricky to make it work properly for the new grid layout. we need to decide if we need to tweak it to work with the new layout or if we can straight away go to using new nav with grid layout

Updated: We with @weronikaolejniczak decided to keep it working as is with the grid layout (using push flyout mechanism), but integrate the new side-nav as a proper grid cell into grid layout

✅ EuiFlyout's includeFixedHeadersInFocusTrap

Currently all EuiFlyouts include all EUI fixed headers into focus trap. Since in new layout the headers are no longer fixed, they are not included into the focus trap by default. We need a mechanism to globally define more "default" focus shards in addition to predefined EuiHeader[fixed]

Updated: This behavior should be covered by #8849 and new includeSelectorInFocusTrap prop and config for flyout

Longer term, we discussed that EUI should probably get rid of all the fixed headers assumptions .

🆗 EuiPageTemplate grow={true} always adds unnecessary scroll

minHeight: grow ? `max(${minHeight}, 100vh)` : minHeight,

minHeight resolves to 100vh which is too much for new layout causing unnecessary scroll

🆗 Fixed header assumption in EuiPageSidebar

sticky={true} assumption should be re-worked to better suit the new layout.

const offset =
typeof sticky === 'object'
? `${sticky?.offset}px`
: 'var(--euiFixedHeadersOffset, 0)';

Currently I hacked it with css overrides

Activity

  1. ryankeairns commented on Jun 24, 2025

    @ryankeairns
    Contributor

    I am not certain what implications this will have on EUI flyouts, but I am noting these couple things in the spirit of building a shared context.

    Notes:

    • With regards to the Kibana flyout system, Devon built a POC that no longer relies upon portaling
    • It was also proposed the flyout could be anchored to a specified element (e.g. an element id on the app container)

    cc:/ @tsullivan

  2. self-assigned this
    on Jul 9, 2025
  3. tkajtoch commented on Jul 9, 2025

    @tkajtoch
    Contributor

    I assigned myself to the issue and will sync with Anton to see what exactly is needed from EUI now and prioritize it.

  4. Dosant commented on Jul 17, 2025

    @Dosant
    ContributorAuthor

    Push Flyout

    The terrible hack in Kibana will be removed with this simple EUI improvement #8872

    This is a good short-term solution, but in the long run, we talked with @tkajtoch about EUI looking into supporting push flyouts related to the specific container instead of body.

    EuiFlyout's includeFixedHeadersInFocusTrap

    This behavior should be covered by #8849 and new includeSelectorInFocusTrap prop and config for flyout

    Longer term, we discussed that EUI should probably get rid of all the fixed headers assumptions .

  5. Dosant commented on Jul 17, 2025

    @Dosant
    ContributorAuthor

    Nothing from EUI seem to be blocking the new layout rollout for now, but summary longer-term:

    • Breakpoints relative to the container become more important as we use more layout areas.
    • Flyouts hacks and custom css would be nice to remove
    • Any fixed headers assumptions don't work anymore and have to be manually turned-off or overriden
  6. Dosant commented on Aug 27, 2025

    @Dosant
    ContributorAuthor

    Created a new issue that I noticed related to popovers and scroll that was moved from document to inner grid container: #8984

  7. added theissue type on Oct 15, 2025
  8. changed the title [-][Kibana Workspace Chrome] Improvements for new Kibana layout[/-] [+][Meta][Kibana Workspace Chrome] Improvements for new Kibana layout[/+] on Feb 5, 2026
  9. JasonStoltz commented on Feb 5, 2026

    @JasonStoltz
    Contributor

    Is this issue still relevant or can we close it?

  10. Dosant commented on Feb 5, 2026

    @Dosant
    ContributorAuthor

    Let's close this. If anything important comes up, we can create separate issues for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions