@accessible/modal
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -58,7 +58,6 @@ 'use strict' | ||
cloneElement(props.children, { | ||
role: childProps.role === void 0 ? 'dialog' : childProps.role, | ||
'aria-modal': | ||
childProps['aria-modal'] === void 0 | ||
? 'false' | ||
: childProps['aria-modal'], | ||
role: childProps.hasOwnProperty('role') ? childProps.role : 'dialog', | ||
'aria-modal': childProps.hasOwnProperty('aria-modal') | ||
? childProps['aria-modal'] | ||
: 'false', | ||
style: _extends({}, props.children.props.style, defaultStyles), | ||
@@ -77,6 +76,5 @@ }) | ||
cloneElement(props.children, { | ||
'aria-haspopup': | ||
childProps['aria-haspopup'] === void 0 | ||
? 'dialog' | ||
: childProps['aria-haspopup'], | ||
'aria-haspopup': childProps.hasOwnProperty('aria-haspopup') | ||
? childProps['aria-haspopup'] | ||
: 'dialog', | ||
}) | ||
@@ -83,0 +81,0 @@ ) |
@@ -33,7 +33,6 @@ import React from 'react' | ||
cloneElement(props.children, { | ||
role: childProps.role === void 0 ? 'dialog' : childProps.role, | ||
'aria-modal': | ||
childProps['aria-modal'] === void 0 | ||
? 'false' | ||
: childProps['aria-modal'], | ||
role: childProps.hasOwnProperty('role') ? childProps.role : 'dialog', | ||
'aria-modal': childProps.hasOwnProperty('aria-modal') | ||
? childProps['aria-modal'] | ||
: 'false', | ||
style: Object.assign({}, props.children.props.style, defaultStyles), | ||
@@ -49,6 +48,5 @@ }) | ||
cloneElement(props.children, { | ||
'aria-haspopup': | ||
childProps['aria-haspopup'] === void 0 | ||
? 'dialog' | ||
: childProps['aria-haspopup'], | ||
'aria-haspopup': childProps.hasOwnProperty('aria-haspopup') | ||
? childProps['aria-haspopup'] | ||
: 'dialog', | ||
}) | ||
@@ -55,0 +53,0 @@ ) |
{ | ||
"name": "@accessible/modal", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "https://github.com/accessible-ui/modal#readme", | ||
@@ -85,3 +85,3 @@ "repository": "github:accessible-ui/modal", | ||
"dependencies": { | ||
"@accessible/collapse": "^1.0.9" | ||
"@accessible/collapse": "^1.0.11" | ||
}, | ||
@@ -88,0 +88,0 @@ "peerDependencies": { |
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
28848
181
Updated@accessible/collapse@^1.0.11