fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

TagItem 'text-overflow' does not work properly

Open Koniksan opened this issue 7 years ago • 8 comments

http://joxi.ru/MAjo5V6Ujk17pr

I think that something goes wrong here, maybe there need additional property 'white-space: nowrap' for .ms-TagItem-TextOverflow selector Thanks !

P.S. Still really looking forward to solving this problem #7835

Koniksan avatar Feb 18 '19 17:02 Koniksan

@Koniksan Hello! Can you make a codepen that repros this? Because right now, I'm unable to repro, this is what I get when I try in Edge: image

aneeshack4 avatar Feb 19 '19 21:02 aneeshack4

@aneeshack4 https://codepen.io/anon/pen/mvgyRJ?editors=1010

Koniksan avatar Feb 20 '19 11:02 Koniksan

I still don't see the problem - what is the expected behavior here? It looks fine to me... image

aneeshack4 avatar Feb 21 '19 00:02 aneeshack4

@aneeshack4 Hi I am trying to tell you that I dont understand why do you use this properties for .ms-TagItem-TextOverflow

I mean this ones :

  • text-overflow: ellipsis;
  • overflow: hidden;

http://joxi.ru/a2XZNywfw4gNyr

They are wont work without property white-space: nowrap; I am expecting something like that https://codepen.io/anon/pen/mvgyRJ

Thanks !

P.S. And if I am understanding right, It is good to add title attribute for html tag with the same text as additional property in IBasePickerSuggestionsProps

Koniksan avatar Feb 21 '19 08:02 Koniksan

@Koniksan Thank you for providing further details. I haven't worked with Pickers so I don't know have much knowledge around this but maybe @joschect or @Lego6245, who have worked with Pickers, do?

aneeshack4 avatar Feb 21 '19 21:02 aneeshack4

@Vitalius1 helped explain this more to me and I think I get it - sent out a PR #8141. @Koniksan I don't understand what you're saying about the title attribute though - can you elaborate?

aneeshack4 avatar Feb 27 '19 19:02 aneeshack4

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

Handy links:

msft-github-bot avatar Feb 28 '19 13:02 msft-github-bot

@aneeshack4 Thanks for update, nice to work with you :)

Koniksan avatar Feb 28 '19 14:02 Koniksan