From 5b6dd6270566c461e881e88994454eb98c06e677 Mon Sep 17 00:00:00 2001 From: Randall Wilk <22842525+rawilk@users.noreply.github.com> Date: Sat, 18 May 2019 19:44:34 -0500 Subject: [PATCH] Accessibility (#22) --- .editorconfig | 5 +- CHANGELOG.md | 21 +- CONTRIBUTING.md | 1 - README.md | 18 +- build/webpack.mix.js | 4 +- dist/js/vue-context.js | 1 + dist/vue-context.js | 1 - package-lock.json | 1334 +++++++------------------------------ package.json | 10 +- screenshot.jpg | Bin 0 -> 33545 bytes screenshot.png | Bin 10139 -> 0 bytes src/index.js | 3 - src/js/index.js | 1 + src/js/normalize-slot.js | 6 + src/js/utils.js | 74 ++ src/js/vue-context.js | 270 ++++++++ src/sass/_config.scss | 5 + src/sass/vue-context.scss | 39 ++ src/vue-context.vue | 221 ------ test/index.html | 50 +- test/js/dist/index.js | 723 +++++++++++++++++++- test/js/src/index.js | 24 +- 22 files changed, 1421 insertions(+), 1390 deletions(-) create mode 100644 dist/js/vue-context.js delete mode 100644 dist/vue-context.js create mode 100644 screenshot.jpg delete mode 100644 screenshot.png delete mode 100644 src/index.js create mode 100644 src/js/index.js create mode 100644 src/js/normalize-slot.js create mode 100644 src/js/utils.js create mode 100644 src/js/vue-context.js create mode 100644 src/sass/_config.scss create mode 100644 src/sass/vue-context.scss delete mode 100644 src/vue-context.vue diff --git a/.editorconfig b/.editorconfig index 2e7acaf..6816590 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,7 @@ indent_size = 4 trim_trailing_whitespace = true [*.md] -trim_trailing_whitespace = false \ No newline at end of file +trim_trailing_whitespace = false + +[*.scss] +insert_final_newline = false diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ce5ab..cdcb459 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ All notable changes to this project will be documented here. + +## [4.0.0](https://github.com/rawilk/vue-context/releases/tag/4.0.0) + +Released 2019-05-18 + +### Added 4.0.0 +- Added support for keyboard navigation (up and down arrows). +- Added ability to close menu on esc. +- Added `lazy` prop as an alternative to `v-show`. +- Added `tag` prop to specify menu tag (defaults to `