-
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
refactor(application-components): add optional prop to modal page transform property #2387
Conversation
🦋 Changeset detectedLatest commit: 44ba8d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 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 |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/Gs7owBfjrYvnbCQJxNVPLaXsTZS2 |
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 for the contribution.
I left a suggestion to make this a bit more customizable.
PS: also please provide a changeset.
packages/application-components/src/components/modal-pages/internals/modal-page.tsx
Outdated
Show resolved
Hide resolved
Asides @emmenko's suggestions & the changeset, looks okay. |
packages/application-components/src/components/modal-pages/internals/modal-page.tsx
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.
We should add this prop to all modal pages, to be consistent.
.../application-components/src/components/modal-pages/tabular-modal-page/tabular-modal-page.mdx
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.
Awesome, 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.
A minor feedback
Summary
Adds an optional prop (
afterOpenStyles
) toModalPage
componentDescription
The
<*ModalPage>
components now accept a propafterOpenStyles
to overwrite the default styles. You can pass a "class name" or a CSS-in-JS style object.This fixes a
jumpy
behavior observed when attempting to drag-n-drop an element on a modal page.