From 883b75fe2e904a57a62beea6878b52fc1c636b61 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Thu, 9 Jan 2020 12:01:22 -0600 Subject: [PATCH 01/12] nav drawer focus; nav drawer flyout autoclose --- src-docs/src/views/nav_drawer/nav_drawer.js | 6 +- .../__snapshots__/nav_drawer.test.js.snap | 72 +++++++++++++++++-- src/components/nav_drawer/nav_drawer.js | 40 ++++++++--- .../nav_drawer/nav_drawer_flyout.js | 36 ++++++++-- src/components/nav_drawer/nav_drawer_group.js | 17 ++++- 5 files changed, 144 insertions(+), 27 deletions(-) diff --git a/src-docs/src/views/nav_drawer/nav_drawer.js b/src-docs/src/views/nav_drawer/nav_drawer.js index f295b81e009..d9bb48d6df2 100644 --- a/src-docs/src/views/nav_drawer/nav_drawer.js +++ b/src-docs/src/views/nav_drawer/nav_drawer.js @@ -262,9 +262,9 @@ export default class extends Component { onKeyDown = event => { if (event.keyCode === keyCodes.ESCAPE) { - event.preventDefault(); - event.stopPropagation(); - this.closeFullScreen(); + // event.preventDefault(); + // event.stopPropagation(); + // this.closeFullScreen(); } }; diff --git a/src/components/nav_drawer/__snapshots__/nav_drawer.test.js.snap b/src/components/nav_drawer/__snapshots__/nav_drawer.test.js.snap index 62d0b4ff117..05ff946e4fc 100644 --- a/src/components/nav_drawer/__snapshots__/nav_drawer.test.js.snap +++ b/src/components/nav_drawer/__snapshots__/nav_drawer.test.js.snap @@ -294,8 +294,28 @@ exports[`EuiNavDrawer is rendered 1`] = ` id="navDrawerFlyoutTitle" tabindex="-1" /> -