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

chore(ui): change background color to transparent for avatar with photoUrl #7527

Conversation

hieunt-itfoss
Copy link
Contributor

Resolves #7145

  • Custom AvatarStyled: add transparent props if the avatar doesn't have background-color which is interpolated in getAvatarColor.
  • Remove background-color of the avatar with photoUrl.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Mar 9, 2023
Copy link
Contributor

@aditya-radhakrishnan aditya-radhakrishnan left a comment

Choose a reason for hiding this comment

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

Thank you for making this change! Could you post before and after screenshots before I approve?

@jjoyce0510
Copy link
Collaborator

Looks like linting is failing! Do you mind checking?

@hieunt-itfoss hieunt-itfoss force-pushed the remove-background-color-for-avatar-with-photo-url branch from 5bbe479 to 4058533 Compare March 23, 2023 10:04
@vercel
Copy link

vercel bot commented Mar 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
docs-website ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 23, 2023 at 10:04AM (UTC)

@hieunt-itfoss
Copy link
Contributor Author

Looks like linting is failing! Do you mind checking?

Sorry for the late response. I just update this PR. The linting is fixed.

@hieunt-itfoss
Copy link
Contributor Author

@aditya-radhakrishnan

Before:
Screen Shot 2023-03-23 at 5 17 51 PM

After removing background:
Screen Shot 2023-03-23 at 5 18 10 PM

@aditya-radhakrishnan
Copy link
Contributor

Can you post another set of screenshots confirming that for Avatars without a photo, this works as expected?

@hieunt-itfoss
Copy link
Contributor Author

Can you post another set of screenshots confirming that for Avatars without a photo, this works as expected?

avatarWithDefault:
Screen Shot 2023-04-20 at 6 09 26 PM
avatarWithInitial (name):
Screen Shot 2023-04-20 at 6 24 49 PM

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

looks great! thanks for this

@chriscollins3456 chriscollins3456 merged commit a9a80b8 into datahub-project:master Apr 20, 2023
iprentic pushed a commit that referenced this pull request Apr 27, 2023
…toUrl (#7527)

Co-authored-by: Nguyen Tri Hieu <[email protected]>
Co-authored-by: Chris Collins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor: User Profile Image can have colored background
5 participants