Socket
Socket
Sign inDemoInstall

@accessible/modal

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accessible/modal - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

16

dist/cjs/index.js

@@ -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": {

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