fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: Issue when MenuItem renders string with no space characters that is greater than 290px

Open mgilarmo opened this issue 1 year ago • 2 comments

Component

Menu

Package version

9.47.3

React version

18.3.1

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
    Memory: 33.98 GB / 63.95 GB
Browsers:
    Edge: Chromium (134.0.3124.72)
    Internet Explorer: 11.0.26100.1882

Current Behavior

Strings longer than 290px that do not contain space characters will overflow the space provided

Image

Expected Behavior

Something like word-break: break-word; to wrap the string or maybe text-overflow: ellipsis;

Reproduction

https://stackblitz.com/edit/ub9ryk58?file=src%2Fexample.tsx

Steps to reproduce

  1. implement a Menu: https://react.fluentui.dev/?path=/docs/components-menu-menu--docs#default
  2. for a MenuItem, use this string: "ThisIsAReallySuperDuperLongStringExampleToShowTheIssue"

Are you reporting an Accessibility issue?

yes

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

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

mgilarmo avatar Mar 27 '25 16:03 mgilarmo

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".

Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons.

Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent.