-
Notifications
You must be signed in to change notification settings - Fork 5.4k
UI and storybook updates #15071
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
UI and storybook updates #15071
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. |
| 'collectible-default__clickable': handleImageClick, | ||
| className={classnames('collectible-default', { | ||
| 'collectible-default--clickable': handleImageClick, | ||
| })} |
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.
Updating classes here to follow BEM naming convention
| })} | ||
| onClick={handleImageClick} | ||
| > | ||
| <Typography variant={TYPOGRAPHY.H7} className="collectible-default__text"> |
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 click handler from text as unneeded. Clicking text still fires event
click.mov
| handleImageClick.args = { | ||
| // eslint-disable-next-line no-alert | ||
| handleImageClick: () => window.alert('CollectibleDefaultImage clicked!'), | ||
| }; |
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.
Adding story for empty image card
| overflowWrap={OVERFLOW_WRAP.BREAK_WORD} | ||
| boxProps={{ margin: 0, marginBottom: 4 }} | ||
| > | ||
| {description} |
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.
When there is a long word or id in the description the layout breaks. This fixes that.
| ...collectible, | ||
| image: undefined, | ||
| }, | ||
| }; |
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.
Adding another story to display the collectible details story when there is no image
| padding={0} | ||
| justifyContent={JUSTIFY_CONTENT.CENTER} | ||
| className="collectibles-items__item-wrapper__card" | ||
| > |
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.
Adding overflow hidden to the card so the image being contained doesn't overlap the border.
adonesky1
left a comment
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.
Builds ready [8048cdd]Page Load Metrics (1885 ± 72 ms)
highlights:storybook
|
|
@adonesky1 I have added a |


Explanation
Some UI updates
Screenshots
Before
After
Also updating and adding some stories


