fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

PeoplePicker: delete button can't be seen when screen is narrow

Open MirandaGe opened this issue 9 years ago • 6 comments

Bug Report

  • Package version(s): all
  • Browser and OS versions: IE 11

Describe the issue:

The persona card of selected people doesn't perform properly when the browser window width is narrow.

Actual behavior:

  1. open the fabric-react people picker demo page, input 'a' and select a long name like: 'Another A Name (So Many A Names!)'.
  2. narrow the window, make the width less than selected persona tag in input area The outcome is like: image

The delete button cannot be seen and click; The persona overlaps the input area. (in chrome it will be truncated, but there's also no way to see the delete button)

Expected behavior:

The delete button can be seen and can be use. The border of the input area is complete.

If applicable, please provide a codepen repro:

http://codepen.io/lingge/pen/MJBzjG

MirandaGe avatar Feb 17 '17 02:02 MirandaGe

@MirandaGe it looks like the code pen is not using the latest version of office-ui-fabric-react. This should have been fixed in the latest version. I'll see if I can't get code-pen to use the latest.

joschect avatar Feb 21 '17 18:02 joschect

@joschect I retested on latest version, it seems there is still problems for IE 11 image

MirandaGe avatar Feb 22 '17 08:02 MirandaGe

May I raise another concern, why do we have 180px limitation on the .ms-BasePicker-text class? I don't think we should have this in something with name base.

lijunle avatar Feb 24 '17 09:02 lijunle

This appears to be resolved in 2.0.1

http://codepen.io/micahgodbolt/pen/jBBgYG?editors=1010

micahgodbolt avatar Mar 10 '17 22:03 micahgodbolt

Hi, @micahgodbolt

I tried to play with your codepen and find a strange issue. After select aaaaaa, then input bbbb and select, it cannot see bbbb in input box. However, after click x on aaaaa, it shows the bbbb again. It seems that, the bbbb locates behind aaaaa label.

Browser: Chrome and Safari


Open another bug #1256 to track it.

lijunle avatar Mar 12 '17 13:03 lijunle

Hi @micahgodbolt , I tried your codepen and it's not resolved. The problem is for IE 11. Could you please reopen the issue? Also I find the root cause of the problem. It is because the min-width is not set correctly. see my change in http://codepen.io/lingge/pen/MJBzjG

MirandaGe avatar Mar 13 '17 09:03 MirandaGe