Skip to content

fix(ui5-shellbar): ignore non-ShellBarItem children in overflow calculation (2.23)#13733

Open
dobrinyonkov wants to merge 1 commit into
release-2.23.1from
fix/shellbar-13729-2.23
Open

fix(ui5-shellbar): ignore non-ShellBarItem children in overflow calculation (2.23)#13733
dobrinyonkov wants to merge 1 commit into
release-2.23.1from
fix/shellbar-13729-2.23

Conversation

@dobrinyonkov

Copy link
Copy Markdown
Contributor

What

Downport of #13729 to the 2.23.x line.

Original commit on main: 064fda6

Why

The ShellBar overflow calculation currently treats any element slotted under items as an overflowable ShellBarItem, which breaks when consumers slot non-ShellBarItem children (e.g. for layout or grouping).
Customers on the 2.23.x line need the fix without waiting for the next minor.

How

Cherry-picked verbatim from main onto release-2.23.1 — no conflicts. Touches:

  • packages/fiori/src/ShellBar.ts — filter overflow candidates to actual ShellBarItems
  • packages/fiori/src/ShellBarItem.ts — marker on the item class for the filter
  • packages/fiori/src/ShellBarTemplate.tsx — template adjustment
  • packages/fiori/cypress/specs/ShellBar.cy.tsx — covers the non-ShellBarItem child case

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant