-
Notifications
You must be signed in to change notification settings - Fork 217
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
feat(modal): Add support for scrolling a modal #1259
feat(modal): Add support for scrolling a modal #1259
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
51c5999
to
1de255f
Compare
return ( | ||
<Stack as={Element} ref={ref} flexDirection={flexDirection} {...elemProps}> | ||
<Stack as={Element} ref={ref} flexDirection="column" {...elemProps}> |
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.
Changes to this file are optional. The changes simplify Stack
by removing unnecessary Typescript and decreasing prop name duplication.
Summary
Fixes #790
This PR changes the structure of Modals slightly by removing the extra
div
in theModal.Body
andPopup.Body
and instead adds the type thatCard.Body
adds manually. This allows theModal.Body
to be more easily styled, but may be a breaking change. This change also allows overflow to be applied to Modals.