Skip to content

Commit

Permalink
Use inert to prevent hidden off canvas nav to be focussable, #1647
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-herrmann committed Sep 30, 2019
1 parent c3621b9 commit 6bab1da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
]
},
"dependencies": {
"deepmerge": "^4.0.0"
"deepmerge": "^4.0.0",
"inert-polyfill": "^0.2.5"
}
}
1 change: 1 addition & 0 deletions src/Phoenix.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</div>
</template>
<script>
import 'inert-polyfill'
import { mapGetters, mapState, mapActions } from 'vuex'
import TopBar from './components/Top-Bar.vue'
import Menu from './components/Menu.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<oc-application-menu name="coreMenu" v-model="sidebarIsVisible" @close="sidebarIsVisible = false">
<oc-application-menu name="coreMenu" v-model="sidebarIsVisible" :inert="!sidebarIsVisible" @close="sidebarIsVisible = false" ref="sidebar">
<oc-sidebar-nav-item v-for="(n, nid) in nav" :key="nid" :icon="n.iconMaterial" :target="n.route ? n.route.path : null" @click="openItem(n.url)">{{ translateMenu(n) }}</oc-sidebar-nav-item>

<oc-sidebar-nav-item icon="account_circle" target="/account" :isolate="true">
Expand Down

0 comments on commit 6bab1da

Please sign in to comment.