Skip to content

Commit

Permalink
feat: enable focus trap only if the sidebar is an overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt authored and pascalwengerter committed May 12, 2021
1 parent 5c79a34 commit e2e0af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>
<div v-else key="core-content" class="uk-flex uk-flex-stretch">
<transition :name="appNavigationAnimation">
<focus-trap v-if="isSidebarVisible" :active="windowWidth < 1200 && appNavigationVisible">
<focus-trap v-if="isSidebarVisible" :active="isSidebarFixed && appNavigationVisible">
<oc-sidebar
v-touch:swipe.left="handleNavSwipe"
class="oc-app-navigation"
Expand Down

0 comments on commit e2e0af8

Please sign in to comment.