-
Notifications
You must be signed in to change notification settings - Fork 465
[instant] Dismissible overlay for mobile errors #1229
[instant] Dismissible overlay for mobile errors #1229
Conversation
…/wip-viewport-conditional-animations
…rerenders and lose state
Updated w/ development and ready for review |
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.
Is it a bit too much to have a LatestErrorOverlay
? It can't just be part of LatestError
?
Also this whole experience feels kind of off to me but that's more of UX / design feedback
import { DisplayStatus } from '../types'; | ||
import { errorFlasher } from '../util/error_flasher'; | ||
|
||
type ConnectedState = Pick<OverlayContainerProps, 'showOverlay' | 'showMaxWidth'>; |
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.
Oh I like this.
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.
Yea, I think we could benefit from adopting this pattern for all of our containers. Would help reduce work when interfaces change.
<SelectedAssetBuyOrderStateButtons /> | ||
</Container> | ||
</Flex> | ||
<LatestErrorOverlay> |
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.
Can it just be a sibling?
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.
Yes, thanks for calling this out. This hierarchy was a relic of when the overlay was implemented with an :after
css selector
@fragosti thanks for the callout about this being able to be done all in I think this overlay would benefit from a fade-in/fade-out, and it looks like that is the way Chris designed it in his mockup, but I would like to get this in as-is, and add the transition as a follow up step |
Description
Shows a dark overlay over the widget when an error occurs in mobile. Upon clicking the overlay, the error is dismissed.
Testing instructions
Types of changes
Checklist:
[WIP]
if necessary.[sol-cov] Fixed bug
.