Skip to content

Commit

Permalink
Prevent tabbing into closed navigation
Browse files Browse the repository at this point in the history
When the navigation is closed, add "inert" attribute to prevent tabbing
into the sidebar.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Aug 29, 2022
1 parent 3107e55 commit fc30204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Expand Up @@ -57,6 +57,7 @@ emit('toggle-navigation', {
<div id="app-navigation-vue"
class="app-navigation"
role="navigation"
:inert="!open"
:class="{'app-navigation--close':!open }">
<NcAppNavigationToggle :open="open" @update:open="toggleNavigation" />
<slot />
Expand Down

0 comments on commit fc30204

Please sign in to comment.