-
Notifications
You must be signed in to change notification settings - Fork 5k
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
AvatarBase font-size logic #18203
AvatarBase font-size logic #18203
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
8e41be2
to
3035a3f
Compare
3035a3f
to
c2d0934
Compare
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
text-transform: uppercase; |
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.
Removing in favour of Box props
c2d0934
to
2a70217
Compare
6ead1f3
to
ca7d178
Compare
expect(getByTestId('success')).toHaveClass( | ||
'mm-text--color-success-default', | ||
); |
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.
We shouldn't have to update this the text component should use the Box
component color
prop have created an issue here #18209 cc @garrettbear
…ont size logic based on avatar size
a12ac41
to
764b7f4
Compare
Builds ready [764b7f4]
Page Load Metrics (1840 ± 80 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #18203 +/- ##
===========================================
+ Coverage 63.96% 63.97% +0.01%
===========================================
Files 914 914
Lines 35623 35630 +7
Branches 9030 9033 +3
===========================================
+ Hits 22784 22791 +7
Misses 12839 12839
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Explanation
Currently the fallback for AvatarNetwork and AvatarToken is a letter but at the time of creation there was no
Text
component. The letter also breaks at sizexs
of the avatar sizesThis PR changes the root component of the
AvatarBase
component to aText
component and adds logic to size it according to the avatar sizes. It also:Adds storybook updates
Adds documentation
Adds tests
Fixes issue in UX: Multichain: Added TokenList Component #17859
Screenshots/Screencaps
Before
before.mov
After
after.mov
Manual Testing Steps
AvatarNetwork
check the controls and stories and docsAvatarToken
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.