Skip to content

[Bug]: The horizontal overflow behavior of <Tree> is not well-defined #27714

@chenxinyanc

Description

@chenxinyanc

Library

React Components / v9 (@fluentui/react-components)

System Info

"@fluentui/react-components": "9.18.6"

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/fluent-ui-v9-tree-horizontal-overflow-k2lf5r?file=/example.tsx

Bug Description

Actual Behavior

As long as there is any item overflows horizontally, there will be inconsistency on the item widths.

image

And the action button of the overflowed item will not be accessible from the screen (clipped by the scrollable container).

Animation5

Expected Behavior

  1. All the items keep the same width.
  2. Action button appears to the right margin inside the scrollable container, instead of being just outside the scrollable container.
    image
    Animation5

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions