Skip to content

Commit

Permalink
Release v2.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Jun 28, 2017
1 parent 67ee9f5 commit b67ad54
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v2.2.0 - Wed, 28 Jun 2017 18:55:23 UTC
--------------------------------------

- [6f73764](../../commit/6f73764) [chore] update installation documentation.


v2.0.7 - Sun, 25 Jun 2017 17:44:29 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": "2.1.0",
"version": "2.2.0",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
14 changes: 12 additions & 2 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ return /******/ (function(modules) { // webpackBootstrap
ariaHideApp: _propTypes2.default.bool,
shouldCloseOnOverlayClick: _propTypes2.default.bool,
parentSelector: _propTypes2.default.func,
aria: _propTypes2.default.object,
role: _propTypes2.default.string,
contentLabel: _propTypes2.default.string.isRequired
};
Expand Down Expand Up @@ -1384,6 +1385,13 @@ return /******/ (function(modules) { // webpackBootstrap
return typeof additional === 'string' && additional ? className + ' ' + additional : className;
};

_this.ariaAttributes = function (items) {
return Object.keys(items).reduce(function (acc, name) {
acc['aria-' + name] = items[name];
return acc;
}, {});
};

_this.state = {
afterOpen: false,
beforeClose: false
Expand Down Expand Up @@ -1490,15 +1498,16 @@ return /******/ (function(modules) { // webpackBootstrap
onClick: this.handleOverlayOnClick },
_react2.default.createElement(
'div',
{
_extends({
ref: this.setContentRef,
style: _extends({}, contentStyles, this.props.style.content),
className: this.buildClassName('content', className),
tabIndex: '-1',
onKeyDown: this.handleKeyDown,
onClick: this.handleContentOnClick,
role: this.props.role,
'aria-label': this.props.contentLabel },
'aria-label': this.props.contentLabel
}, this.ariaAttributes(this.props.aria || {})),
this.props.children
)
);
Expand Down Expand Up @@ -1535,6 +1544,7 @@ return /******/ (function(modules) { // webpackBootstrap
shouldCloseOnOverlayClick: _propTypes.PropTypes.bool,
role: _propTypes.PropTypes.string,
contentLabel: _propTypes.PropTypes.string,
aria: _propTypes.PropTypes.object,
children: _propTypes.PropTypes.node
};
exports.default = ModalPortal;
Expand Down
Loading

0 comments on commit b67ad54

Please sign in to comment.