Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/launcher bar: fix the focus outline for the global menu on the vertical layout

Adorian Doranf14c101d6dff
diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css
index eff29a2020..4a38448fef 100644
--- a/src/public/stylesheets/theme-next/shell.css
+++ b/src/public/stylesheets/theme-next/shell.css
@@ -253,10 +253,17 @@ body.layout-horizontal > .horizontal {
}
#launcher-pane .launcher-button:focus-visible,
-#launcher-pane .global-menu button:focus-visible {
+#launcher-pane.horizontal .global-menu button:focus-visible {
outline: 2px solid var(--launcher-pane-button-focus-outline-color);
}
+#launcher-pane.vertical .global-menu button:focus-visible svg {
+ outline-offset: 4px;
+ outline: 2px solid var(--launcher-pane-button-focus-outline-color);
+ border-radius: 4px;
+ overflow: visible;
+}
+
#launcher-pane.vertical .spacer {
width: var(--launcher-pane-size);
}