react-burger-menu
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -102,9 +102,8 @@ 'use strict'; | ||
'button', | ||
{ | ||
_extends({ | ||
type: 'button', | ||
id: 'react-burger-cross-btn', | ||
onClick: this.props.onClick, | ||
style: buttonStyle, | ||
tabIndex: this.props.isOpen ? 0 : -1 | ||
}, | ||
style: buttonStyle | ||
}, !this.props.isOpen && { tabIndex: -1 }), | ||
'Close Menu' | ||
@@ -111,0 +110,0 @@ ), |
@@ -408,8 +408,7 @@ 'use strict'; | ||
}).join(' '); | ||
var extraProps = { | ||
var extraProps = _extends({ | ||
key: index, | ||
className: classList, | ||
style: getStyles('item', index, item.props.style), | ||
tabIndex: isOpen ? 0 : -1 | ||
}; | ||
style: getStyles('item', index, item.props.style) | ||
}, !isOpen && { tabIndex: -1 }); | ||
return _react2['default'].cloneElement(item, extraProps); | ||
@@ -416,0 +415,0 @@ } |
{ | ||
"name": "react-burger-menu", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"description": "An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations", | ||
@@ -38,3 +38,3 @@ "main": "lib/BurgerMenu.js", | ||
"gulp-git": "^2.9.0", | ||
"jsdom": "^11.12.0", | ||
"jsdom": "^16.5.0", | ||
"jsdom-global": "^3.0.2", | ||
@@ -41,0 +41,0 @@ "mocha": "^5.2.0", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184996
3834