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(EbayAvatar): add support for aspect ratio auto placement #451

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

HenriqueLimas
Copy link
Member

Description

  • Add new knownAspectRatio number property
  • Calculate the avatar--fit class based on the knownAspectRatio and/or the width and height of the image on page load

Reference eBay/ebayui-core#2433

Storybook: https://opensource.ebay.com/ebayui-core-react/avatar-fit/?path=/story/graphics-icons-ebay-avatar--with-auto-placement

Copy link

changeset-bot bot commented Feb 25, 2025

🦋 Changeset detected

Latest commit: 9fc8faa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ebay/ui-core-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@HenriqueLimas HenriqueLimas mentioned this pull request Feb 25, 2025
6 tasks
@HenriqueLimas HenriqueLimas merged commit 48037b8 into 8.1.0 Feb 25, 2025
7 checks passed
@HenriqueLimas HenriqueLimas deleted the avatar-fit branch February 25, 2025 20:54
HenriqueLimas added a commit that referenced this pull request Feb 25, 2025
* feat(EbayAvatar): add support for aspect ratio auto placement

* add knownAspectRatio docs
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.

2 participants