Skip to content

feat(modal): add backdrop and keyboard options#135

Merged
eddywashere merged 1 commit intoreactstrap:masterfrom
TheSharpieOne:feature/modal-backdrop-options
Sep 14, 2016
Merged

feat(modal): add backdrop and keyboard options#135
eddywashere merged 1 commit intoreactstrap:masterfrom
TheSharpieOne:feature/modal-backdrop-options

Conversation

@TheSharpieOne
Copy link
Copy Markdown
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
Comment thread src/TabContent.js
const classes = classnames('tab-content', this.props.className);
return (
<div className={classes}>
{ this.props.children }
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@TheSharpieOne That was super quick! Thanks!

@eddywashere
Copy link
Copy Markdown
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