Skip to content

[Toolbar]: AlwaysOverflow toolbar children are visible before toolbar resizes #12067

@stephen-schmith

Description

@stephen-schmith

Bug Description

If I add multiple ToolbarButton components into a Toolbar with the overflow-priority property set to AlwaysOverflow on some of them, the AlwaysOverflow buttons are still briefly visible before the Toolbar resize handler is triggered. We're receiving bug reports internally at SAP SF for this.

This issue is especially visible on low power devices, which can be simulated by using CPU throttling in the Chrome dev tools (on my Intel i9 MacBook, 6x CPU throttling makes the issue easily visible). I've linked a simple StackBlitz where I was able to replicate the issue without any external dependencies.

Affected Component

Toolbar

Expected Behaviour

AlwaysOverflow children presumably shouldn't be visible at any time.

Isolated Example

https://stackblitz.com/edit/ui5-webcomponents-yiljtwnh?file=index.html,package.json,index.ts

Steps to Reproduce

  1. Create a toolbar component.
  2. Add toolbar buttons with the overflow-priority set to "AlwaysOverflow"
  3. Observe the issue.

Log Output, Stack Trace or Screenshots

Image

Priority

Medium

UI5 Web Components Version

2.10.0, 2.13.0

Browser

Chrome

Operating System

macOS

Additional Context

No response

Organization

SAP SuccessFactors

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions