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

[Feature]: Zoom in on profile picture while hovering over Avatar component #33908

Open
1 task done
nimeshatmsft opened this issue Feb 26, 2025 · 1 comment
Open
1 task done
Labels
Fluent UI react-components (v9) Needs: PM Incoming shield issues that are feature type which require PM to review. Type: Feature

Comments

@nimeshatmsft
Copy link

nimeshatmsft commented Feb 26, 2025

Area

React Components (@fluentui/react-components)

Describe the feature that you would like added

It would be awesome if the Avatar component could demonstrate more responsiveness upon user interaction.

Currently, the avatar component comprises of a profile picture and a badge. There are only a handful of things we can do with it to make it feel responsive. It would be awesome if we could add and expose the ability to zoom in on the profile picture while maintaining the same clipping behaviour around the badge rather than needing to enlarge the whole Avatar. This would allow our app to emphasize the focus/hover behaviour on the component that is being focused/hovered on.

The proposal is to only update the scale of the profile picture but not the container itself. Something like this:
Image

Additional context

No response

Have you discussed this feature with our team

No response

Validations

  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Priority

Medium

@miroslavstastny miroslavstastny added Needs: PM Incoming shield issues that are feature type which require PM to review. and removed Needs: Triage 🔍 labels Feb 26, 2025
@layershifter
Copy link
Member

FYI that could be achieved by CSS only, https://stackblitz.com/edit/h81nbkjk?file=src%2Fexample.tsx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fluent UI react-components (v9) Needs: PM Incoming shield issues that are feature type which require PM to review. Type: Feature
Projects
None yet
Development

No branches or pull requests

3 participants