a11y-dialog
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "a11y-dialog", | ||
"version": "4.0.0", | ||
"description": "A tiny script to make dialog windows accessible to assistive technology users.", | ||
"version": "4.0.1", | ||
"description": | ||
"A tiny script to make dialog windows accessible to assistive technology users.", | ||
"homepage": "https://github.com/edenspiekermann/a11y-dialog", | ||
"license": "MIT", | ||
"main": "a11y-dialog.js", | ||
"keywords": [ | ||
"modal", | ||
"dialog", | ||
"accessibility", | ||
"a11y", | ||
"focus" | ||
], | ||
"author": "Hugo Giraudel (http://www.edenspiekermann.com/people/hugo-giraudel)", | ||
"keywords": ["modal", "dialog", "accessibility", "a11y", "focus"], | ||
"author": | ||
"Hugo Giraudel (http://www.edenspiekermann.com/people/hugo-giraudel)", | ||
"repository": { | ||
@@ -19,6 +16,3 @@ "type": "git", | ||
}, | ||
"files": [ | ||
"a11y-dialog.js", | ||
"a11y-dialog.min.js" | ||
], | ||
"files": ["a11y-dialog.js", "a11y-dialog.min.js"], | ||
"scripts": { | ||
@@ -33,7 +27,11 @@ "copy": "cp a11y-dialog.js example/main.js", | ||
"test": "open tests/index.html", | ||
"extract-version": "cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'", | ||
"add-version": "echo \"/*! a11y-dialog $(npm run extract-version --silent) — © Edenspiekermann */\n$(cat a11y-dialog.min.js)\" > a11y-dialog.min.js", | ||
"extract-version": | ||
"cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'", | ||
"add-version": | ||
"echo \"/*! a11y-dialog $(npm run extract-version --silent) — © Edenspiekermann */\n$(cat a11y-dialog.min.js)\" > a11y-dialog.min.js", | ||
"compress": "gzip -9 -fkc a11y-dialog.min.js > a11y-dialog.min.js.gz", | ||
"show": "ls -lh a11y-dialog.min.js.gz | awk '{print \"Gzipped script size:\", $5\"B\"}'", | ||
"size": "npm run build --silent && npm run compress --silent && npm run show --silent && rm a11y-dialog.min.js.gz", | ||
"show": | ||
"ls -lh a11y-dialog.min.js.gz | awk '{print \"Gzipped script size:\", $5\"B\"}'", | ||
"size": | ||
"npm run build --silent && npm run compress --silent && npm run show --silent && rm a11y-dialog.min.js.gz", | ||
"docs:clean": "rimraf _book", | ||
@@ -43,3 +41,4 @@ "docs:prepare": "gitbook install", | ||
"docs:watch": "npm run docs:prepare && gitbook serve", | ||
"docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'Update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update book' && git push git@github.com:edenspiekermann/a11y-dialog gh-pages --force" | ||
"docs:publish": | ||
"npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'Update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update book' && git push git@github.com:edenspiekermann/a11y-dialog gh-pages --force" | ||
}, | ||
@@ -46,0 +45,0 @@ "devDependencies": { |
# [A11y Dialog](http://edenspiekermann.github.io/a11y-dialog/) | ||
[a11y-dialog](http://edenspiekermann.github.io/a11y-dialog/) is a lightweight (1.2Kb) yet flexible script to create accessible dialog windows. It has no dependency, a JavaScript API, a DOM API and event handling. | ||
[a11y-dialog](http://edenspiekermann.github.io/a11y-dialog/) is a lightweight (1.2Kb) yet flexible script to create accessible dialog windows. | ||
## Introduction | ||
This repository is a fork from [accessible-modal-dialog ↗](https://github.com/gdkraus/accessible-modal-dialog) by Greg Kraus. We at Edenspiekermann are big fans of the original version, although we discovered we could improve it and make it even better. On top of that, the original script depends on jQuery, which happened to be a problem for us. | ||
The original repository being apparently unmaintained, we decided to fork it and release our own version of the accessible modal dialog. All credits to the original author. | ||
✔︎ No dependencies | ||
✔︎ Closing dialog on overlay click and <kbd>ESC</kbd> | ||
✔︎ Toggling `aria-*` attributes | ||
✔︎ Trapping and restoring focus | ||
✔︎ Firing events | ||
✔︎ DOM and JS APIs | ||
✔︎ Fast and tiny | ||
You can try the [live demo ↗](http://edenspiekermann.github.io/a11y-dialog/example/). | ||
@@ -207,1 +209,7 @@ | ||
``` | ||
## Disclaimer & credits | ||
This repository is a fork from [accessible-modal-dialog ↗](https://github.com/gdkraus/accessible-modal-dialog) by Greg Kraus. We at Edenspiekermann are big fans of the original version, although we discovered we could improve it and make it even better. On top of that, the original script depends on jQuery, which happened to be a problem for us. | ||
The original repository being apparently unmaintained, we decided to fork it and release our own version of the accessible modal dialog. All credits to the original author. |
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
27765
215