Skip to content
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 backdrop and keyboard options #135

Merged

Conversation

TheSharpieOne
Copy link
Member

@TheSharpieOne TheSharpieOne commented Sep 13, 2016

Closes #134
Add backdrop prop to modal with the following options

  • true show backdrop, close on click (default)
  • false hide backdrop
  • "static" show backdrop, do not close on click

Add keyboard prop to modal with the following options

  • true close on escape (default)
  • false do not close on escape

Add tests and docs

Closes reactstrap#134
Add backdrop prop to modal with the following options
 - `true` show backdrop, close on click (default)
 - `false` hide backdrop
 - `"static"` show backdrop, do not close on click
Add keyboard prop to modal with the following options
 - `true` close on escape (default)
 - `false` do not close on escape

Add tests and docs
@@ -34,7 +34,7 @@ export default class TabContent extends Component {
const classes = classnames('tab-content', this.props.className);
return (
<div className={classes}>
{ this.props.children }
Copy link
Member Author

@TheSharpieOne TheSharpieOne Sep 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spaces between the curly and the var was given me a linter error when running the tests.
image

Copy link
Contributor

@ajainarayanan ajainarayanan Sep 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason it didn't throw me this error. Not sure if @eddywashere saw this when he released 3.1.0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed it, maybe it needs option to exit properly in build step

@ajainarayanan
Copy link
Contributor

@TheSharpieOne That was super quick! Thanks!

@eddywashere
Copy link
Member

great additions!

@eddywashere eddywashere merged commit 7bf5d0a into reactstrap:master Sep 14, 2016
@TheSharpieOne TheSharpieOne deleted the feature/modal-backdrop-options branch September 28, 2016 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optionally hide modal backdrop in Modal
3 participants