-
Notifications
You must be signed in to change notification settings - Fork 2
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 <ColumnView> and <Modal> #224
Conversation
f46619d
to
0093dcc
Compare
}; | ||
|
||
ColumnView.defaultProps = { | ||
header: undefined, | ||
footer: undefined, | ||
bottomPadding: undefined, | ||
flexBody: false, | ||
bodyPadding: { bottom: 24 }, |
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.
Other padding should has default value 0
?
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.
If you don't provide it, it should be undefined
and thus it will not be written to CSS.
And thus it would be initial
, which happens to equal 0
here.
I think it's fine though.
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.
LGTM
Purpose
The primary goal is to replace the inner layout of
<Modal>
with<ColumnView>
.It should turn on momentum scrolling on iPads, as well as a default bottom padding.
Changes
Breaking
bottomPadding
prop is removed. Please usebodyPadding
prop and pass an object instead.<Modal>
is refactored to render a<ColumnView>
as its inner layout.<Modal>
no longer takessize
andbodyClassName
props.<Modal bodyPadding>
prop now takes the same object and is passed to<ColumnView>
.Other changes
<SplitView>
is refactored so they can be reused.