-
Notifications
You must be signed in to change notification settings - Fork 27
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
chore: add drawer component #3294
Conversation
Deploy preview for merchant-center-application-kit ready! ✅ Preview Built with commit f3b3a78. |
Deploy preview for application-kit-custom-views ready! ✅ Preview Built with commit f3b3a78. |
...cation-components/src/components/custom-views/custom-view-loader/custom-view-loader.spec.tsx
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.tsx
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.styles.ts
Outdated
Show resolved
Hide resolved
...application-components/src/components/custom-views/custom-view-loader/custom-view-loader.tsx
Outdated
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.tsx
Outdated
Show resolved
Hide resolved
...cation-components/src/components/custom-views/custom-view-loader/custom-view-loader.spec.tsx
Show resolved
Hide resolved
packages/application-components/src/components/drawer/drawer.tsx
Outdated
Show resolved
Hide resolved
packages/application-components/src/components/drawer/drawer.tsx
Outdated
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.styles.ts
Outdated
Show resolved
Hide resolved
🦋 Changeset detectedLatest commit: f3b3a78 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/application-components/src/components/modal-pages/internals/modal-page.styles.ts
Show resolved
Hide resolved
Thanks @YahiaElTai, this looks great! 👍 Maybe just a couple of things more to play safe in the long term:
Also for @FilPob, since you can't see the new component in a preview deployment, just wanted to share that the new overlay color seems too shallow to me and just wanted to double check it is intended 😅 |
@CarlosCortizasCT thanks for the early update! Yes the light overlay is expected. |
Thanks @CarlosCortizasCT for all the feedback :) much appreciated.
|
Thanks @YahiaElTai for the work so far ❤️ A couple of general questions:
Maybe you can use the playground to check / verify these points. Thanks 🤗 |
packages/application-components/src/components/modal-pages/internals/modal-page.styles.ts
Outdated
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.tsx
Show resolved
Hide resolved
packages/application-components/src/components/modal-pages/internals/modal-page.styles.ts
Outdated
Show resolved
Hide resolved
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.
Could you please move the PR out of draft mode?
packages/application-components/src/components/drawer/drawer.tsx
Outdated
Show resolved
Hide resolved
@CarlosCortizasCT Thanks for the comments and the help with this PR. The only thing left is to review and approve the percy snapshots. I will leave that to you 😄 |
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.
Ok. Now it looks great to me 💯
Thanks a lot for your awesome work 🙇
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.
Thanks a lot for the contribution! ❤️
Only a changeset is missing now 😉
}; | ||
|
||
export const getContainerStyles = (_props: StyleProps): SerializedStyles => css` | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
height: 100%; | ||
width: ${_props.size === 'small' ? '600px !important' : '100%'}; | ||
width: ${_props.size !== 'scale' |
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.
Nit: I know it was already like this but could you rename it to props
instead of _props
? In TS an underscore as a prefix is used to silent the compiler that a variable is unused.
Thanks
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.
💯
Summary
This PR adds the new
Drawer
component which will implement a side panel container with similarities to modal pages.