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

a11y-dialog

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a11y-dialog - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

17

a11y-dialog.js
(function (global) {
'use strict';
// Helper function for dispatching cross browser dispatch events
// from http://youmightnotneedjquery.com/#trigger_custom
function dispatchEvent (el, eventName) {
var event;
if (window.CustomEvent) {
event = new CustomEvent(eventName);
} else {
event = document.createEvent('CustomEvent');
event.initCustomEvent(eventName, true, true);
}
el.dispatchEvent(event);
}
// Helper function to get all focusable children from a node

@@ -86,2 +101,3 @@ function getFocusableChildren (node) {

document.body.addEventListener('focus', maintainFocus, true);
dispatchEvent(node, 'dialog:show');
}

@@ -95,2 +111,3 @@

document.body.removeEventListener('focus', maintainFocus, true);
dispatchEvent(node, 'dialog:hide');
}

@@ -97,0 +114,0 @@ };

2

package.json
{
"name": "a11y-dialog",
"version": "2.2.0",
"version": "2.3.0",
"description": "A tiny script to make dialog windows accessible to assistive technology users.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/edenspiekermann/a11y-dialog",

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