Skip to content

feat: add setting to always display the first item in FluentOverflow #2391

@JamesNK

Description

@JamesNK

🙋 Feature Request

FluentOverflow hides items if there aren't enough room to display them. However, sometimes you might want to display the first item, even if it is cutoff.

For example, given a list of names, seeing the first name, but having it cut off with an ellipsis (someone can add CSS to add ellipsis) so the user can interact with it is preferrable to just showing the overflow button and no content.

🤔 Expected Behavior

The first item is displayed is the space available, then the overflow button.

This is what it could look like:

fluentoverflow-firstitem

😯 Current Behavior

FluentOverflow only shows the first item if there is room for it. If there isn't then just the overflow button is displayed.

This is what it looks like today:

fluentoverflow-firstitem-current

💁 Possible Solution

Add a setting to FluentOverflow that controls whether the first item is always rendered inline.

🔦 Context

💻 Examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions