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]: [avatar] move size, color and generate initials out of base class #32123

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

eljefe223
Copy link
Contributor

@eljefe223 eljefe223 commented Jul 26, 2024

Previous Behavior

generteInitials referenced size and was tightly coupled with name and initial however it was only used in the template.

New Behavior

Since generteInitials was only used in the template it's easy for us to move it out of the base class along with size this takes a lot of dead css out of the base set of styles. color is also move from the base class.

Related Issue(s)

@eljefe223 eljefe223 requested a review from a team as a code owner July 26, 2024 14:55
@fabricteam
Copy link
Collaborator

fabricteam commented Jul 26, 2024

📊 Bundle size report

✅ No changes found

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 26, 2024

🕵 fluentui-web-components-v3 No visual regressions between this PR and main

@eljefe223 eljefe223 changed the title [chore]: [avatar] move size and generate initials out of base class [chore]: [avatar] move size, color and generate initials out of base class Jul 26, 2024
@eljefe223 eljefe223 merged commit 04c9a2a into microsoft:master Jul 26, 2024
16 of 18 checks passed
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.

[Feature]: : [Avatar] Investigate decoupling size from initials and name.
3 participants