chore: rework Avatar to use makeStyles()#16793
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 28cd71a2a8ce9cf2398b45335a49621507b8c55d (build) |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 31e1201:
|
Perf Analysis
All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
9ca8372 to
c6035a3
Compare
c6035a3 to
16f1f38
Compare
…eat/avatar-styles � Conflicts: � apps/perf-test/package.json � apps/vr-tests/package.json � packages/react-avatar/package.json
…eat/avatar-styles � Conflicts: � apps/perf-test/package.json � apps/vr-tests/package.json
|
/azp run |
…eat/avatar-styles � Conflicts: � apps/perf-test/package.json � apps/vr-tests/package.json � packages/react-avatar/package.json � packages/react-examples/package.json � packages/react-menu/package.json
…entui into feat/avatar-styles � Conflicts: � apps/vr-tests/package.json
…eat/avatar-styles
The last blocking issue were shadow definitions, they have been changed by design and now implementation is aligned to the spec.
…eat/avatar-styles � Conflicts: � packages/react-examples/.storybook/preview.js
…eat/avatar-styles � Conflicts: � apps/perf-test/package.json � apps/vr-tests/package.json
…eat/avatar-styles � Conflicts: � packages/react-avatar/src/components/Avatar/Avatar.tsx � packages/react-avatar/src/components/Avatar/useAvatar.tsx � packages/react-avatar/src/components/Badge/useBadge.tsx
…entui into feat/avatar-styles
…eat/avatar-styles � Conflicts: � packages/react-examples/.storybook/preview.js
|
🎉 Handy links: |
|
🎉 Handy links: |
* chore: rework Avatar to use makeStyles() * move out styles to a separate file * fix decorator * fix VR tests * fix deps * fix typings * use proper color for shadow * remove tokens related stories * Change files * fix lint errors * fix versions * Update change/@fluentui-react-avatar-3e5903f1-93cd-453b-9960-73bf323c5b9e.json Co-authored-by: Xu Gao <xugao0131@hotmail.com> * Update change/@fluentui-react-avatar-3e5903f1-93cd-453b-9960-73bf323c5b9e.json Co-authored-by: Xu Gao <xugao0131@hotmail.com> * Update apps/perf-test/src/index.scenarios.tsx Co-authored-by: Xu Gao <xugao0131@hotmail.com> * rename decorator * fix typings for useImage() * remove test for `tokens` * fix changefile * fix dependencies * restore changes * restore changes * Update packages/react-avatar/src/components/Avatar/useAvatarStyles.ts * restore hexagonal avatar * Update avatar styles * Add back custom size tests and examples * fix versions * Change files * fix versions * remove obsolete change file * Update apps/vr-tests/src/stories/Avatar.stories.tsx * fix imports * Clean up and export useAvatarStyles * Update robot example in storybook, and remove robot example from screener tests * Clean up robot example * remove unused import Co-authored-by: Xu Gao <xugao0131@hotmail.com> Co-authored-by: Ben Howell <behowell@microsoft.com>
Description of changes
This PR replaces SCSS stylesheets with
makeStyles()implementation. Stories fortokenswere temporary removed and will be restored once we will figure out a story for component tokens onThemeobjects.Also performs a small cleanup of types.