react-aria-modal
Advanced tools
Comparing version 2.8.0 to 2.9.0
# Changelog | ||
## 2.9.0 | ||
- Add `underlayProps` prop to pass additional attributes to the underlay container. | ||
## 2.8.0 | ||
@@ -4,0 +8,0 @@ |
@@ -130,2 +130,6 @@ 'use strict'; | ||
for (var prop in this.props.underlayProps) { | ||
underlayProps[prop] = this.props.underlayProps[prop]; | ||
} | ||
var verticalCenterStyle = {}; | ||
@@ -214,2 +218,3 @@ if (props.includeDefaultStyles) { | ||
Modal.defaultProps = { | ||
underlayProps: {}, | ||
dialogId: 'react-aria-modal-dialog', | ||
@@ -216,0 +221,0 @@ underlayClickExits: true, |
{ | ||
"name": "react-aria-modal", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-aria-modal.js", |
@@ -164,3 +164,3 @@ # react-aria-modal | ||
If you may omit this prop if you don't want clicks outside the modal or Escape to close it, so don't want to provide a function. | ||
You may omit this prop if you don't want clicks outside the modal or Escape to close it, so don't want to provide a function. | ||
@@ -167,0 +167,0 @@ ### applicationNode |
@@ -8,2 +8,3 @@ const React = require('react'); | ||
static defaultProps = { | ||
underlayProps: {}, | ||
dialogId: 'react-aria-modal-dialog', | ||
@@ -119,2 +120,6 @@ underlayClickExits: true, | ||
for (const prop in this.props.underlayProps) { | ||
underlayProps[prop] = this.props.underlayProps[prop]; | ||
} | ||
let verticalCenterStyle = {}; | ||
@@ -121,0 +126,0 @@ if (props.includeDefaultStyles) { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
162201
12
381
1