Skip to content
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(ui5-avatar): introduce new component #1135

Merged
merged 7 commits into from
Jan 14, 2020
Merged

Conversation

ilhan007
Copy link
Member

No description provided.

Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and looks great, I have two suggestion to the API:

  • make the image a slot so that the user may supply "alt" as well.
  • For the icon I think it makes sense to have a property, but to be consistent it would be "icon" and not "iconSrc".

So you have:
<ui5-avatar><img src="..." alt="..."></ui5-avatar>
or
<ui5-avatar icon="user"></ui5-avatar>

MapTo0
MapTo0 previously approved these changes Jan 14, 2020
vladitasev
vladitasev previously approved these changes Jan 14, 2020
@ilhan007 ilhan007 dismissed stale reviews from vladitasev and MapTo0 via d49b6fd January 14, 2020 11:35
@ilhan007 ilhan007 merged commit b1c8747 into master Jan 14, 2020
@ilhan007 ilhan007 deleted the feat-avatar-component branch January 14, 2020 12:25
@ilhan007 ilhan007 mentioned this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants