-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat(NcNoteCard): provide a slot for inserting a custom icon instead of default #4894
Conversation
…of default Signed-off-by: Maksim Sukharev <[email protected]>
What is the usecase for this? |
Could avatar be the content of the note instead of an icon? IMO, it is a very edge case for this component, and avatar should not be used as an icon. |
Yes, but It is still requires to hide default icon from the DOM, and reinvent a bicycle to wrap a new icon and a content
Agree, but it's wider than just an avatar, and more a nice-to-have option (which we have at NcAction... components, for example) |
Yes but for the avatar this would be the wrong place and should not be placed there. And I am no designer but I think that this might make thing more inconsistent design wise (for all other cases). But as said I am not a designer. |
Fixed |
Having a custom icon in the note card, or more specific should we omit the "info" icon if there is an avatar. |
What do you mean by that? Either a default icon or an avatar if provided? Wouldn't it be overcomplicated for that component? |
I just wanted to point out that the design for this specific feature could be improved. It is up to you to decide if such a design would make sense as separate component or to overwrite the design of the component in talk then... |
I don't see it as a wide use-case to make it a separate component. That's why I'd just put a slot as proposed by this PR and do the rest in the app itself. |
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.
/backport to next |
☑️ Resolves
🖼️ Screenshots
🏁 Checklist