-
Notifications
You must be signed in to change notification settings - Fork 50
Add avatar 2025rc #3003
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
Add avatar 2025rc #3003
Conversation
language: 'tsx', | ||
}, | ||
{ | ||
title: 'JS', |
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.
Don't we only do Preact
examples now? Can we remove the JS
one?
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.
It seems like the JS examples still exist for the other components but are just not displayed on the documentation. I decided to follow that and keep the file but remove it from the documentation.
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.
Sorry for not catching these all at once - but I still see the JS example on the docs. I think you need to remove the reference to it from this file
* | ||
* @default 'base' | ||
*/ | ||
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>; |
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.
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.
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.
Nice! I think you might have forgotten to push the change for this PR 😅 I dont see any changes since the last review on here
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.
Oops sorry, I only pushed the shopify-dev commit, the ui-extensions one should be up to date now 🙂
32eba21
to
ac419c8
Compare
export type Size = | ||
| 'extraSmall' | ||
| 'small' | ||
| 'base' | ||
| 'large' | ||
| 'extraLarge' | ||
| 'fill'; |
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.
I tried it out, and I think you should be able to import this from the shared file instead at the top of the file:
import {Size} from './components/shared';
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.
Alright I'll try again and see if that works
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.
done, change have been pushed
0400758
to
797c859
Compare
Description
Original issue: https://github.com/shop/issues-checkout/issues/5645
Create and add Avatar Component to Documentation
What's Changed
This PR introduces a new Avatar component for the Customer Account surface, making it easier for developers to display user profile images in their UI extensions.
📝 Changes Made Added Avatar component with TypeScript definitions and proper integration into the component system
📚 Documentation Updates
Screenshot of working document: