-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix(components/Dialog): spread props [BR] #1159
Conversation
…/ui into jmfrancois/fix/modal-spread-props
@@ -50,16 +71,16 @@ Dialog.defaultProps = { | |||
|
|||
Dialog.propTypes = { | |||
header: PropTypes.string, | |||
size: PropTypes.oneOf(['small', 'large']), | |||
size: PropTypes.oneOf(['sm', 'small', 'lg', 'large']), |
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.
why have 'sm' and 'small' (same for 'lg' and 'large') ?
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.
one alone is not enough?
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.
yes they are the same and both exists in bootstrap
What is the problem this PR is trying to solve?
You can't add id, className, and other props to the modal you have to use bsDialogProps.
What is the chosen solution to this problem?
Spread all props to the Modal component
And remove bsDialogProps (BREAKING CHANGE)
Please check if the PR fulfills these requirements
Before
after
tips: if you use the connected version you can do
onHideDispatch