-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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(Avatar): add icon prop #12660
feat(Avatar): add icon prop #12660
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 7927551e96fa5b7572425d947b58ba07c826f401 (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
@@ -0,0 +1,13 @@ | |||
import * as React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be this example in Slots
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but then we should restructure all examples, as we don't even have slots examples here. I will just leave it now after the image example, and we can restructure the examples in a separate PR.
packages/fluentui/react-northstar/src/components/Avatar/Avatar.tsx
Outdated
Show resolved
Hide resolved
}), | ||
})} | ||
{!image && | ||
!icon && | ||
Label.create(label || {}, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to your changes, but this is not cool as if I will pass there null
the slot will be still rendered
packages/fluentui/react-northstar/src/themes/teams/components/Avatar/avatarStyles.ts
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Avatar/Avatar.tsx
Outdated
Show resolved
Hide resolved
…Avatar/avatarStyles.ts Co-Authored-By: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
* -added icon prop inside Avatar * -updated changelog * Update packages/fluentui/react-northstar/src/themes/teams/components/Avatar/avatarStyles.ts Co-Authored-By: Oleksandr Fediashov <alexander.mcgarret@gmail.com> * -addressed comments Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
Pull request checklist
$ yarn change
Description of changes
(give an overview)
Focus areas to test
(optional)
Microsoft Reviewers: Open in CodeFlow