Skip to content

Commit

Permalink
Merge pull request #5148 from nextcloud-libraries/fix/a11y/2278/not-p…
Browse files Browse the repository at this point in the history
…ossible-to-close-left-sidebar-on-small-screens

fix: app-navigation-toggle remains on screen on small viewports
  • Loading branch information
susnux authored Jan 29, 2024
2 parents b01316b + 1d3a181 commit 7665b6e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export default {
},
props: {
/**
* Tracks whether the toggle has been clicked or not.
* If it has been clicked, switches between the different MenuIcons
* and emits a boolean indicating its opened status
*/
open: {
type: Boolean,
required: true,
Expand All @@ -69,6 +74,10 @@ export default {
},
},
methods: {
/**
* Once the toggle has been clicked, emits the toggle status
* so parent components can gauge the status of the navigation button
*/
toggleNavigation() {
this.$emit('update:open', !this.open)
},
Expand Down

0 comments on commit 7665b6e

Please sign in to comment.