-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ListItemIcon component #1578
Conversation
9cb2087
to
55d867d
Compare
Ping everyone :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the second line should be allowed only if the avatar is >= 44px
32px still looks good. |
c615071
to
feb9ca9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Srsly best PR I've seen in the last 10 mins
I don't really understand the purpose of supplying a subtitle if that one is going to be hidden due to small size. Should it appear in a tooltip ? Should screen readers read it ? |
I've tested it with the screen reader and as long as the text is displayed it will be read out. |
Yes, this require changes on the object |
I'm opened to suggestions :) |
or maybe whoever is passing in a small size should simply not set the subtitle ? I guess a tooltip could be a good approach if the decision whether to hide the subtitle is done by the component. |
No it's not. Expecting random conditions to be read by devs is a no-no from me, never works 🙈 |
feb9ca9
to
22f6f21
Compare
as a heads up, after merging we'll need to recheck and adjust the following consumers of Multiselect: I've grepped for from git:
and probably more in apps, here's something from the NC 20 tarball:
I wonder if we should adjust first before merging, or at least have the matching PRs ready to merge first ? Thoughts ? |
It should only be a breaking change for the one using the |
new results, based on
and NC 20 release tarball:
so a bit less, but still a bunch to adjust and test |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
22f6f21
to
dc9de62
Compare
So, To adjust the code in your apps, you need to provide |
@PVince81 I'll let you decide if you're good with this :) |
I'm mostly worried about who will fix all these and how much time we'll have an "unstable" feature in those places. I come from a place where we'd try and keep master branches as stable as possible to be able to release any time and not have surprises. But the latter involves keeping PRs running for longer times and opening PRs in all places that need adjustment, and then merging all at a given point when all are ready. Or we open a server ticket where we list all those places and tag as "regression to fix before NC 21 final" and move forward. |
Well, it's not like it's instantly available for all apps. |
Good point, I missed that. Thanks for the clarification. |
Hello @ALL, the name of this component is misleading. As the documentation to this component says: "This is used to display a avatar-title/subtitle + icon layout" so the name should be ListUserIcon or ListAvatarIcon to make clear that this is not a generic icon component to be used in lists ( to bad ad all ). |
Well, it's because you can display plenty of other things than users. Groups, contacts, simple item :) |
or adjust the documentation to make it clearer that you can also build items without icons ? |
It was about time we have one of those. 🙄
@ma12-co @PVince81 It seems to be pretty much the same design as in Talk (except you're using 44px size, which I implemented), please tell me if there is a hidden feature on talk that I might have missed here :)