fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[TeachingBubble] Long titles are not cropped properly

Open lucas-stanford opened this issue 5 years ago • 4 comments

Environment Information

  • Package version(s): 8.14.11
  • Browser and OS versions: Chrome/Windows

Describe the issue:

Teach bubbles titles that are long should be truncated and maybe have a title attr added

image

Please provide a reproduction of the issue in a codepen:

https://codepen.io/fordfordford/pen/QWpGPVX

Actual behavior:

Content is not visible when title is a long string

Expected behavior:

Ellipsis should be shown at minimum to indicate there is additional text.

Documentation describing expected behavior

n/a

lucas-stanford avatar May 20 '21 02:05 lucas-stanford

@lucas-stanford - thanks for reaching out and I see PR #18267 will help sort this out. We will keep this open until the linked PR is completed.

gouttierre avatar Jun 07 '21 14:06 gouttierre

@ecraig12345 Can you please review my PR?

nancy2681 avatar Jun 12 '21 07:06 nancy2681

@lucas-stanford Just FYI in case this comes up again, in most cases you can manually add a style override setting overflowWrap: 'break-word' if it's not already present. In this case it would go under ITeachingBubbleProps.styles.headline. https://codepen.io/ecraig12345/pen/OJpYGax?editors=0010

ecraig12345 avatar Jun 22 '21 17:06 ecraig12345

:tada:This issue was addressed in #18652, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 28 '21 07:06 msft-fluent-ui-bot