-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Sheet] build sheet component #1250
Conversation
@gf3 @Shopify/app-bridge @tmlayton I plan on making this new component available shortly. The plan is to also make it available through the I'm pinging you to let you know my intent, and to get eyes on the plan I've outlined in the original comment at the top of this PR. If you wouldn't mind taking a look at the plan and calling out anything I've missed, I would hugely appreciate it. Also, as I've never added any new features to the Thanks in advance! |
a625cc8
to
cc58c3e
Compare
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.
Couple small things but this looks great.
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.
Tophatted on Web and iOS simulator. I noticed some issues that stem from Storybook, but are not present when this component is tophatted in Web. So, looks good to me. I opened a separate issue to look into the issues stemming from Storybook.
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.
Hey Dan, nothing blocking, just some thoughts!
Reviewers
The only outstanding work needed is improving the existing example, which will be done before merging. Reviewers should not wait on that example to provide review.Sheet
A sheet is a large container that enters from the edge of the screen when triggered by the merchant. It’s used to provide merchants with actions and information contextual to the page. It doesn’t interrupt their flow like a modal.
Approach
While I previously planned on allowing this component to be used with an embedded application by delegating rendering to the App Bridge, we have decided to wait on implementing that functionality. So, for now this component is for use only within a standalone application, and will not return markup and will throw a warning if it is not rendered inside the
Frame
component.This results in a simpler implementation, and allows us to give more thought to whether and how we want to enable use in an embedded context.
Playground