Skip to content

Commit 7665b6e

Browse files
authored
Merge pull request #5148 from nextcloud-libraries/fix/a11y/2278/not-possible-to-close-left-sidebar-on-small-screens
fix: app-navigation-toggle remains on screen on small viewports
2 parents b01316b + 1d3a181 commit 7665b6e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/NcAppNavigationToggle/NcAppNavigationToggle.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export default {
5555
},
5656
5757
props: {
58+
/**
59+
* Tracks whether the toggle has been clicked or not.
60+
* If it has been clicked, switches between the different MenuIcons
61+
* and emits a boolean indicating its opened status
62+
*/
5863
open: {
5964
type: Boolean,
6065
required: true,
@@ -69,6 +74,10 @@ export default {
6974
},
7075
},
7176
methods: {
77+
/**
78+
* Once the toggle has been clicked, emits the toggle status
79+
* so parent components can gauge the status of the navigation button
80+
*/
7281
toggleNavigation() {
7382
this.$emit('update:open', !this.open)
7483
},

0 commit comments

Comments
 (0)