Fluentui: TagItem 'text-overflow' does not work properly

Created on 18 Feb 2019  ·  8Comments  ·  Source: microsoft/fluentui

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

TagPicker Question ❔

All 8 comments

@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

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

@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 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?

@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?

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

Handy links:

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

Was this page helpful?
0 / 5 - 0 ratings