-
Notifications
You must be signed in to change notification settings - Fork 349
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(modalbox): add the small modifier to modalbox #1372
Conversation
Pull Request Test Coverage Report for Build 4578
💛 - Coveralls |
thanks @boaz0, looks like the preview isn't working so I can't verify visually. though looking at the code, I'm not sure if it should be part of this PR or not, but this change was also made to enable users to pass a |
PatternFly-React preview: https://1372-pr-patternfly-react-patternfly.surge.sh |
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.
Can you add an example on how to change the width to a user defined width (e.g. 400px)? Also I think we need a width prop.
@dlabaj I fixed that. Thanks for your review. |
Your Travis build is likely fine, just merge master and push to get the latest CI changes. |
thanks @redallen - did git rebase. |
@boaz0 Can you please rebase again please. Some changes were made in Master to fix failing Build. Thanks. |
@boaz0 gotcha. Is there any way to add a class or otherwise style the generated element? If not we're going to need to reconsider components we currently center using the |
@mcoker looking at the documents, So I did what you suggested and used |
Gotcha, thanks. I don't think it's ideal to have to use 2 |
@boaz0 for now I think what you've done with 2 is it common for a component like |
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!!
Opened a ticket focus-trap/focus-trap-react#40 for that thing. I will update you when I will have something. |
Hi @mcoker I have good news. I took a look at the source code and it seems that I was wrong. I am updating the code and tests and pushing it for your review. Thanks. |
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
@boaz0 awesome! Good to know, I'm sure we'll use |
@@ -23,19 +23,25 @@ const propTypes = { | |||
actions: PropTypes.any, | |||
/** A callback for when the close button is clicked */ | |||
onClose: PropTypes.func, | |||
/** Default width of the Modal. */ |
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.
Should we add clarification, something like Use either the width or the isLarge/isSmall prop
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.
I will check this out.
Although if I am not wrong isLarge
and isSmall
are setting maxWidth
and minWidth
to Modal
respectively.
Thanks.
Awesome! 🙌 Thank you! |
What:
closes #1291 and #1138
//cc @mcoker can you take a look to make sure I didn't miss anything. Thanks.