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: update Avatar to leverage ElementInternals for role and color states #31693

Conversation

chrisdholt
Copy link
Member

Previous Behavior

Avatar applies the role and color in the DOM.

New Behavior

Avatar uses ElementInternals for the role and setting a custom state (with attribute fallback) for colors, to avoid sprouting unnecessary attributes.

Related Issue(s)

  • Fixes #

@chrisdholt chrisdholt requested a review from a team as a code owner June 13, 2024 00:07
@chrisdholt chrisdholt force-pushed the users/chhol/move-avatar-role-to-element-internals branch from cc8f3b7 to bbbbc31 Compare June 13, 2024 00:08
@fabricteam
Copy link
Collaborator

fabricteam commented Jun 13, 2024

📊 Bundle size report

✅ No changes found

@chrisdholt chrisdholt force-pushed the users/chhol/move-avatar-role-to-element-internals branch 5 times, most recently from a846fb2 to a0c6307 Compare June 13, 2024 05:55
@chrisdholt chrisdholt force-pushed the users/chhol/move-avatar-role-to-element-internals branch 3 times, most recently from da33ea2 to 8b2b2ec Compare June 13, 2024 16:42
@chrisdholt chrisdholt force-pushed the users/chhol/move-avatar-role-to-element-internals branch from a0ba865 to cb488e2 Compare June 13, 2024 20:31
@chrisdholt chrisdholt force-pushed the users/chhol/move-avatar-role-to-element-internals branch from cb488e2 to 2e3eec9 Compare June 13, 2024 22:33
@chrisdholt chrisdholt merged commit 17b73b4 into microsoft:master Jun 13, 2024
18 checks passed
@chrisdholt chrisdholt deleted the users/chhol/move-avatar-role-to-element-internals branch June 13, 2024 22:59
miroslavstastny pushed a commit to miroslavstastny/fluentui that referenced this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants