Skip to content

[EuiFlyout] Expose header, footer, and outer scroll refs - #10105

Merged
tsullivan merged 4 commits into
elastic:mainfrom
vianmangal:feat/flyout-expose-refs-10087
Oct 1, 2026
Merged

tsullivan merged 4 commits into
elastic:mainfrom
vianmangal:feat/flyout-expose-refs-10087

Conversation

@vianmangal

@vianmangal vianmangal commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Forward refs from EuiFlyoutHeader and EuiFlyoutFooter to their root elements.
  • Add scrollContainerRef to EuiFlyout for its outer .euiFlyout__content element, separate from the panel ref and EuiFlyoutBody's existing internal scroll ref.
  • Correct the exported header, footer, and body prop types so they describe component props rather than component types.
  • Add focused ref tests and document the distinction between the scroll containers.

Why are we making this change?

Relates to #10087. Kibana's collapsible flyout header currently has to query the DOM and walk ancestor elements to locate the header and outer scroll region. These refs provide direct handles without changing default behavior.

Impact to users

Additive API change. Existing consumers do not need to update their code. No visual changes.

QA

  • corepack yarn test-unit flyout_body.test.tsx flyout_header.test.tsx flyout_footer.test.tsx flyout.test.tsx --runInBand --silent — 85 tests passed
  • corepack yarn tsc --noEmit — passed
  • corepack yarn tsc -p .storybook/tsconfig.json --noEmit — passed
  • ESLint on changed TypeScript files — no errors

@github-actions

Copy link
Copy Markdown

👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually?

@github-actions github-actions Bot added the community contribution (Don't delete - used for automation) label Sep 30, 2026
@github-actions

Copy link
Copy Markdown

We don't accept community contributions without a linked issue labelled "help wanted". Please file or link one first. See our contribution guidelines.

@vianmangal
vianmangal marked this pull request as ready for review September 30, 2026 21:05
@vianmangal
vianmangal requested a review from a team as a code owner September 30, 2026 21:05
Copilot AI balanced review requested due to automatic review settings September 30, 2026 21:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tsullivan tsullivan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vianmangal thanks for this work! Left a few comments

@vianmangal

Copy link
Copy Markdown
Contributor Author

@tsullivan resolved. check it out

@tsullivan
tsullivan enabled auto-merge (squash) October 1, 2026 16:46
@tsullivan

Copy link
Copy Markdown
Member

buildkite test it

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

@tsullivan
tsullivan merged commit a624afb into elastic:main Oct 1, 2026
7 checks passed
@tsullivan

Copy link
Copy Markdown
Member

Thank you, vian!

skynetigor pushed a commit to skynetigor/kibana that referenced this pull request Oct 7, 2026
## Dependency updates

`@elastic/eui` - v123.0.0 ⏩ v123.1.0

## Package updates

### `@elastic/eui`
[v123.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Removed the left color highlight from `EuiCallOut`
([elastic#10109](elastic/eui#10109))
- Updated Flyout menu height to 50px
([elastic#10103](elastic/eui#10103))
- Added new icons: `chartMix`, `chartWaffle`, `clipboardWarning`,
`clockUp`, `emergencyLight`, `productCanvas`, `productElasticAgent`,
`productFleet`, `productLens`, `puzzlePiece`, `shield`
([elastic#10111](elastic/eui#10111))
- Added `hasAriaDisabled` prop on `EuiSelectableListItem` and `type
EuiSelectableOption`
([elastic#10090](elastic/eui#10090))
- Added refs for `EuiFlyoutHeader`, `EuiFlyoutFooter`, and the outer
`EuiFlyout` scroll container.
([elastic#10105](elastic/eui#10105))
- Corrected `EuiFlyoutHeaderProps`, `EuiFlyoutFooterProps`, and
`EuiFlyoutBodyProps` to describe component props instead of component
types. ([elastic#10105](elastic/eui#10105))
- Updated `EuiFormRow`'s `labelAppend` to render string content with an
extra-small, subdued text style.
([elastic#10067](elastic/eui#10067))

**Bug fixes**

- Fixed a bug on `EuiSelectable` with `searchable={true}` that could
result in an infinite loop if all search results are disabled
([elastic#10090](elastic/eui#10090))
- Fixed `EuiSuperSelect` omitting the currently selected value from its
accessible name when an `aria-label` or `aria-labelledby` was passed.
External labels are now combined with the selected value instead of
overriding it ([elastic#10039](elastic/eui#10039))

---------

Co-authored-by: Ángeles Martínez Barrio <[email protected]>
Co-authored-by: Alexey Antonov <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
mikecote pushed a commit to mikecote/kibana that referenced this pull request Oct 21, 2026
…ass lookup (elastic#299617)

## Summary

Follows elastic/eui#10105

EUI 123.2.0 forwards `ref` on `EuiFlyoutHeader` (elastic/eui#10087), so
`FlyoutTemplate.Header` now passes the collapse hook's `headerRef`
directly to it.

This PR removes the Kibana-owned `kbnFlyoutTemplateHeader` class, the
`closest()` lookup that walked up from an inner wrapper, and the wrapper
`<div>` that existed only to start that walk. Wheel forwarding behaves
as before, and the header tests now find the header by `data-test-subj`
instead of an EUI-internal class.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- ~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud, added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker),
or updated in external injectors such as kibana-controller; unused in
this repo is not unused in production — prefer
[`rename()`](https://github.com/elastic/kibana/blob/main/docs/extend/tutorials/configuring-your-plugin.md#handle-plugin-configuration-deprecations)
over a hard cut~
- ~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~
- ~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~
- ~[ ] The PR description includes the appropriate Release Notes
section, and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/docs/extend/kibana/contributing/workflow/how-we-use-github#release-notes)~
- ~[ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.~
erikcurrin-elastic pushed a commit to erikcurrin-elastic/kibana that referenced this pull request Oct 22, 2026
…ass lookup (elastic#299617)

## Summary

Follows elastic/eui#10105

EUI 123.2.0 forwards `ref` on `EuiFlyoutHeader` (elastic/eui#10087), so
`FlyoutTemplate.Header` now passes the collapse hook's `headerRef`
directly to it.

This PR removes the Kibana-owned `kbnFlyoutTemplateHeader` class, the
`closest()` lookup that walked up from an inner wrapper, and the wrapper
`<div>` that existed only to start that walk. Wheel forwarding behaves
as before, and the header tests now find the header by `data-test-subj`
instead of an EUI-internal class.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- ~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud, added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker),
or updated in external injectors such as kibana-controller; unused in
this repo is not unused in production — prefer
[`rename()`](https://github.com/elastic/kibana/blob/main/docs/extend/tutorials/configuring-your-plugin.md#handle-plugin-configuration-deprecations)
over a hard cut~
- ~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~
- ~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~
- ~[ ] The PR description includes the appropriate Release Notes
section, and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/docs/extend/kibana/contributing/workflow/how-we-use-github#release-notes)~
- ~[ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants