From 3117890b305ffae45251264b30a8d77c32d888be Mon Sep 17 00:00:00 2001 From: George Marshall Date: Fri, 17 Mar 2023 10:06:59 -0700 Subject: [PATCH] AvatarBase font-size logic (#18203) * Updating AvatarBase to use Text component instead of Box and adding font size logic based on avatar size * Updating snaps --- .../__snapshots__/avatar-account.test.js.snap | 2 +- .../component-library/avatar-base/README.mdx | 2 + .../__snapshots__/avatar-base.test.js.snap | 2 +- .../avatar-base/avatar-base.js | 56 +++-- .../avatar-base/avatar-base.scss | 5 - .../avatar-base/avatar-base.stories.js | 3 +- .../avatar-base/avatar-base.test.js | 32 +-- .../__snapshots__/avatar-favicon.test.js.snap | 2 +- .../__snapshots__/avatar-icon.test.js.snap | 2 +- .../avatar-icon/avatar-icon.test.js | 4 +- .../avatar-network/README.mdx | 4 + .../__snapshots__/avatar-network.test.js.snap | 2 +- .../avatar-network/avatar-network.stories.js | 30 ++- .../avatar-network/avatar-network.test.js | 4 +- .../component-library/avatar-token/README.mdx | 4 + .../__snapshots__/avatar-token.test.js.snap | 2 +- .../avatar-token/avatar-token.stories.js | 228 +++++++++++++++++- .../avatar-token/avatar-token.test.js | 4 +- .../__snapshots__/picker-network.test.js.snap | 2 +- .../__snapshots__/tag-url.test.js.snap | 2 +- 20 files changed, 326 insertions(+), 66 deletions(-) diff --git a/ui/components/component-library/avatar-account/__snapshots__/avatar-account.test.js.snap b/ui/components/component-library/avatar-account/__snapshots__/avatar-account.test.js.snap index 4fb7ecbbe..0dfe9536f 100644 --- a/ui/components/component-library/avatar-account/__snapshots__/avatar-account.test.js.snap +++ b/ui/components/component-library/avatar-account/__snapshots__/avatar-account.test.js.snap @@ -3,7 +3,7 @@ exports[`AvatarAccount should render correctly 1`] = `