fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[ChoiceGroup With Icon] Text overflow when label of choice group item is big

Open aadhars opened this issue 8 years ago • 3 comments

Bug Report

  • Package version(s): latest
  • Browser and OS versions: All OS

Priorities and help requested (not applicable if asking question):

Requested priority: (Blocking, High, Normal, Low) : High

Products/sites affected: (if applicable) VSTS

Describe the issue:

When the label of choice group item is big the choice group clips the label for that item. image

Actual behavior:

Width and height of choice group item should not be fixed. If we use imageSrc it work fine as there is no pre set height and width.

Here is the code which causes issue: https://github.com/OfficeDev/office-ui-fabric-react/search?utf8=%E2%9C%93&q=choiceFieldIsIcon&type=

https://github.com/OfficeDev/office-ui-fabric-react/search?utf8=%E2%9C%93&q=ms-choiceField-iconField-size&type=

Expected behavior:

Width of item should increase and not be constrained to 96 px

If applicable, please provide a codepen repro:

aadhars avatar Dec 21 '17 13:12 aadhars

@betrue-final-final What's the desired design for this scenario?

lynamemi avatar Jan 22 '18 19:01 lynamemi

From the toolkit, it looks like the width should stay fixed but the text should wrap: image

lynamemi avatar Jan 22 '18 19:01 lynamemi

You are correct @lynamemi. If you have further questions, Adam Ford may be able to answer them.

betrue-final-final avatar Jan 22 '18 19:01 betrue-final-final