Skip to content

Upgrade EUI to v99.4.0#212974

Merged
tkajtoch merged 5 commits intoelastic:mainfrom
tkajtoch:feat/eui-99.4.0
Mar 5, 2025
Merged

Upgrade EUI to v99.4.0#212974
tkajtoch merged 5 commits intoelastic:mainfrom
tkajtoch:feat/eui-99.4.0

Conversation

@tkajtoch
Copy link
Member

@tkajtoch tkajtoch commented Mar 3, 2025

99.3.0-borealis.099.4.0-borealis.0

Questions? Please see our Kibana upgrade FAQ.


v99.4.0

  • Minor design updates to EuiCollapsibleNavBeta (#8332)
    • Allow section without a title
    • Second-level icons should be horizontally aligned with the top-level icon
    • Turn off text truncation for nav items
  • Added quickSelectButtonProps to EuiSuperDatePicker (#8380)

Bug fixes

  • Fixed a bug in EuiHeader where the navigation of EuiCollapsibleNavBeta would render below the EuiFlyout's overlay (#8325)

Accessibility

  • Improved the accessibility of EuiComboBox by adding aria-setsize and aria-posinset to ensure correct information is provided for its virtualized listbox (#8333)
  • Improved the EuiAccordionTrigger's screen reader UX by passed aria-hidden to the EuiAccordionArrow to avoid duplicated announcements by screen readers. (#8342)

@tkajtoch tkajtoch self-assigned this Mar 3, 2025
@tkajtoch tkajtoch added v9.1.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Mar 3, 2025
const selector = getByTestId('cloud-defend-selector');

// should start as closed.
// there are two mock selectors, and the last one will auto open
Copy link
Member Author

Choose a reason for hiding this comment

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

This was incorrect. The old length of 2 was not a result of 2 selectors being rendered but each EuiAccordionTrigger rendering two collapse/expand buttons - one button icon for the arrow and one as a wrapper for the buttonContent. This was recently fixed in elastic/eui#8342 by adding aria-hidden to the button icon making it ignored by RTL

@tkajtoch tkajtoch marked this pull request as ready for review March 4, 2025 00:58
@tkajtoch tkajtoch requested review from a team as code owners March 4, 2025 00:58
@tkajtoch tkajtoch requested a review from rylnd March 4, 2025 00:58
@tkajtoch tkajtoch added v9.0.0 backport:prev-minor and removed backport:skip This PR does not require backporting labels Mar 4, 2025
if (!isEuiCollapsibleNavItemProps(props)) {
throw new Error(`Invalid EuiCollapsibleNavItem props for node ${props.id}`);
throw new Error(
`Invalid EuiCollapsibleNavItem props for node ${(props as EuiCollapsibleNavSubItemProps).id}`
Copy link
Member Author

Choose a reason for hiding this comment

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

With the updated types in https://github.com/elastic/eui/pull/8332/files#diff-86282e52a76bc99796d93869317a478caec87064dc42551ac89ca2fc2950a2d5 TS has a hard time getting the right type here resulting in props being of type never after the isEuiCollapsibleNavItemProps check.

We'll be reassessing EUI's more complex types to get rid of this and similar issues.

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-npmDll 6.1MB 6.1MB +1.1KB

History

cc @tkajtoch

@tkajtoch tkajtoch merged commit 75f9c61 into elastic:main Mar 5, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/13676764003

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 5, 2025
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 5, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Upgrade EUI to v99.4.0
(#212974)](#212974)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Tomasz
Kajtoch","email":"tomasz.kajtoch@elastic.co"},"sourceCommit":{"committedDate":"2025-03-05T13:09:55Z","message":"Upgrade
EUI to v99.4.0
(#212974)","sha":"75f9c6113d7815f542f97ad37dcec7ffe6263f23","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","v9.1.0"],"title":"Upgrade
EUI to
v99.4.0","number":212974,"url":"https://github.com/elastic/kibana/pull/212974","mergeCommit":{"message":"Upgrade
EUI to v99.4.0
(#212974)","sha":"75f9c6113d7815f542f97ad37dcec7ffe6263f23"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212974","number":212974,"mergeCommit":{"message":"Upgrade
EUI to v99.4.0
(#212974)","sha":"75f9c6113d7815f542f97ad37dcec7ffe6263f23"}}]}]
BACKPORT-->

Co-authored-by: Tomasz Kajtoch <tomasz.kajtoch@elastic.co>
tkajtoch added a commit that referenced this pull request Mar 7, 2025
# Backport

This is a manual backport of #212974 and #213292

---

`99.3.0-classic.0` ⏩ `100.0.0-classic.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

---


## [`v100.0.0`](https://github.com/elastic/eui/releases/v100.0.0)

**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a
delimiter prop. ([#8335](elastic/eui#8335))

## [`v99.4.0`](https://github.com/elastic/eui/releases/v99.4.0)

- Minor design updates to `EuiCollapsibleNavBeta`
([#8332](elastic/eui#8332))
  - Allow section without a title
- Second-level icons should be horizontally aligned with the top-level
icon
  - Turn off text truncation for nav items
- Added `quickSelectButtonProps` to `EuiSuperDatePicker`
([#8380](elastic/eui#8380))

**Bug fixes**

- Fixed a bug in `EuiHeader` where the navigation of
`EuiCollapsibleNavBeta` would render below the `EuiFlyout`'s overlay
([#8325](elastic/eui#8325))

**Accessibility**

- Improved the accessibility of `EuiComboBox` by adding `aria-setsize`
and `aria-posinset` to ensure correct information is provided for its
virtualized listbox ([#8333](elastic/eui#8333))
- Improved the `EuiAccordionTrigger`'s screen reader UX by passed
`aria-hidden` to the `EuiAccordionArrow` to avoid duplicated
announcements by screen readers.
([#8342](elastic/eui#8342))

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

Comments