diff --git a/dashboard/src/components/Expandable.vue b/dashboard/src/components/Expandable.vue
index e594688c..4f0a39f4 100644
--- a/dashboard/src/components/Expandable.vue
+++ b/dashboard/src/components/Expandable.vue
@@ -8,7 +8,7 @@
v-on:keydown.space="$event.preventDefault()"
v-on:keyup.space="toggle"
tabindex="0">
-
+
diff --git a/dashboard/src/components/docs/DocsLayout.vue b/dashboard/src/components/docs/DocsLayout.vue
index 2c895240..5561d883 100644
--- a/dashboard/src/components/docs/DocsLayout.vue
+++ b/dashboard/src/components/docs/DocsLayout.vue
@@ -18,7 +18,7 @@
class="py-1 px-2 rounded hover:bg-gray-700 hidden lg:block">
Go to dashboard
-
@@ -27,21 +27,21 @@
-
@@ -132,6 +132,14 @@
toggleMobileMenu() {
this.mobileMenuOpen = !this.mobileMenuOpen;
},
+
+ onChooseMenuItem() {
+ if (document.activeElement instanceof HTMLElement) {
+ document.activeElement.blur();
+ }
+
+ this.mobileMenuOpen = false;
+ },
},
computed: {
diff --git a/dashboard/src/components/docs/Introduction.vue b/dashboard/src/components/docs/Introduction.vue
index 04f9026a..344e6f2e 100644
--- a/dashboard/src/components/docs/Introduction.vue
+++ b/dashboard/src/components/docs/Introduction.vue
@@ -7,7 +7,7 @@
-
+
This documentation is a work in progress.
diff --git a/dashboard/src/style/docs.pcss b/dashboard/src/style/docs.pcss
index 5303cb75..2bb3e17f 100644
--- a/dashboard/src/style/docs.pcss
+++ b/dashboard/src/style/docs.pcss
@@ -2,4 +2,8 @@
& .router-link-active {
@apply underline;
}
+
+ &.closed:not(:focus-within) {
+ @apply sr-only;
+ }
}