Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-aria-modal

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aria-modal - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

6

lib/Modal.js

@@ -13,2 +13,4 @@ var React = require('react');

alert: PropTypes.bool,
dialogClass: PropTypes.string,
dialogId: PropTypes.string,
focusDialog: PropTypes.bool,

@@ -27,2 +29,3 @@ initialFocus: PropTypes.string,

return {
dialogId: 'react-aria-modal-dialog',
underlayClickExits: true,

@@ -94,3 +97,4 @@ underlayColor: 'rgba(0,0,0,0.5)',

role: (this.props.alert) ? 'alertdialog' : 'dialog',
id: 'react-aria-modal-dialog',
id: this.props.dialogId,
className: this.props.dialogClass,
style: {

@@ -97,0 +101,0 @@ position: 'absolute',

2

package.json
{
"name": "react-aria-modal",
"version": "1.0.4",
"version": "1.1.0",
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -131,2 +131,16 @@ # react-aria-modal

### dialogClass
Type: `String`
Apply a class to the dialog in order to custom-style it.
Be aware that this module does apply various inline styles to the dialog element in order position it.
### dialogId
Type: `String`, Default: `react-aria-modal-dialog`
Choose your own id attribute for the dialog element.
### focusDialog

@@ -133,0 +147,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc