Skip to content

Commit

Permalink
Release v3.4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Apr 19, 2018
1 parent 529ca33 commit a235089
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v3.4.2 - Thu, 19 Apr 2018 09:16:47 UTC
--------------------------------------

- [529ca33](../../commit/529ca33) Add `testId` prop for use as a test hook
- [e294dc7](../../commit/e294dc7) [added] Add module field to package json
- [d8fe0dd](../../commit/d8fe0dd) Added default prop for defaultStyles property


v3.4.1 - Tue, 17 Apr 2018 09:49:06 UTC
--------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.4.1",
"version": "3.4.2",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
10 changes: 7 additions & 3 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,9 @@ var ModalPortal = function (_Component) {
onClick: this.handleContentOnClick,
role: this.props.role,
"aria-label": this.props.contentLabel
}, this.ariaAttributes(this.props.aria || {})),
}, this.ariaAttributes(this.props.aria || {}), {
"data-testid": this.props.testId
}),
this.props.children
)
);
Expand All @@ -1899,7 +1901,8 @@ ModalPortal.defaultProps = {
style: {
overlay: {},
content: {}
}
},
defaultStyles: {}
};
ModalPortal.propTypes = {
isOpen: _propTypes2.default.bool.isRequired,
Expand Down Expand Up @@ -1929,7 +1932,8 @@ ModalPortal.propTypes = {
children: _propTypes2.default.node,
shouldCloseOnEsc: _propTypes2.default.bool,
overlayRef: _propTypes2.default.func,
contentRef: _propTypes2.default.func
contentRef: _propTypes2.default.func,
testId: _propTypes2.default.string
};
exports.default = ModalPortal;
module.exports = exports["default"];
Expand Down
4 changes: 2 additions & 2 deletions dist/react-modal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.4.1",
"version": "3.4.2",
"description": "Accessible modal dialog component for React.JS",
"main": "./lib/index.js",
"module": "./src/index.js",
Expand Down

0 comments on commit a235089

Please sign in to comment.