From 2e2c278dee3323f80298694d7c99580480ca628f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Feb 2018 13:49:43 -0800 Subject: [PATCH] better a11y for modal: retain focus when closed --- routes/_components/ModalDialog.html | 87 ++++++++++++++++++++++ routes/_components/status/VideoDialog.html | 74 ++---------------- routes/_utils/dialogs.js | 55 ++++++++++++++ routes/_utils/showVideoDialog.js | 10 +-- 4 files changed, 153 insertions(+), 73 deletions(-) create mode 100644 routes/_components/ModalDialog.html create mode 100644 routes/_utils/dialogs.js diff --git a/routes/_components/ModalDialog.html b/routes/_components/ModalDialog.html new file mode 100644 index 0000000..2cff2f4 --- /dev/null +++ b/routes/_components/ModalDialog.html @@ -0,0 +1,87 @@ +
+
+ +
+ +
+ + \ No newline at end of file diff --git a/routes/_components/status/VideoDialog.html b/routes/_components/status/VideoDialog.html index 907ab64..246abfb 100644 --- a/routes/_components/status/VideoDialog.html +++ b/routes/_components/status/VideoDialog.html @@ -1,9 +1,4 @@ -
-
- -
+
+