Skip to content

Commit a235089

Browse files
committed
Release v3.4.2.
1 parent 529ca33 commit a235089

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v3.4.2 - Thu, 19 Apr 2018 09:16:47 UTC
2+
--------------------------------------
3+
4+
- [529ca33](../../commit/529ca33) Add `testId` prop for use as a test hook
5+
- [e294dc7](../../commit/e294dc7) [added] Add module field to package json
6+
- [d8fe0dd](../../commit/d8fe0dd) Added default prop for defaultStyles property
7+
8+
19
v3.4.1 - Tue, 17 Apr 2018 09:49:06 UTC
210
--------------------------------------
311

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"homepage": "https://github.com/reactjs/react-modal",
55
"authors": [
66
"Ryan Florence",

dist/react-modal.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,9 @@ var ModalPortal = function (_Component) {
18851885
onClick: this.handleContentOnClick,
18861886
role: this.props.role,
18871887
"aria-label": this.props.contentLabel
1888-
}, this.ariaAttributes(this.props.aria || {})),
1888+
}, this.ariaAttributes(this.props.aria || {}), {
1889+
"data-testid": this.props.testId
1890+
}),
18891891
this.props.children
18901892
)
18911893
);
@@ -1899,7 +1901,8 @@ ModalPortal.defaultProps = {
18991901
style: {
19001902
overlay: {},
19011903
content: {}
1902-
}
1904+
},
1905+
defaultStyles: {}
19031906
};
19041907
ModalPortal.propTypes = {
19051908
isOpen: _propTypes2.default.bool.isRequired,
@@ -1929,7 +1932,8 @@ ModalPortal.propTypes = {
19291932
children: _propTypes2.default.node,
19301933
shouldCloseOnEsc: _propTypes2.default.bool,
19311934
overlayRef: _propTypes2.default.func,
1932-
contentRef: _propTypes2.default.func
1935+
contentRef: _propTypes2.default.func,
1936+
testId: _propTypes2.default.string
19331937
};
19341938
exports.default = ModalPortal;
19351939
module.exports = exports["default"];

dist/react-modal.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"description": "Accessible modal dialog component for React.JS",
55
"main": "./lib/index.js",
66
"module": "./src/index.js",

0 commit comments

Comments
 (0)