Skip to content

Build your personal knowledge base with Trilium Notes

style/global menu button: fix the focus indicator

Adorian Doran6745b887fb78
diff --git a/apps/client/src/widgets/buttons/global_menu.css b/apps/client/src/widgets/buttons/global_menu.css
index 2f229ff139..2145b76f9f 100644
--- a/apps/client/src/widgets/buttons/global_menu.css
+++ b/apps/client/src/widgets/buttons/global_menu.css
@@ -16,12 +16,13 @@ button.global-menu-button {
padding: 6px;
}
-.global-menu-button svg {
+.global-menu-button svg > g {
+ transform-origin: center;
transition: transform 300ms ease-in-out;
}
-.global-menu-button:active svg,
-.global-menu-button.show svg {
+.global-menu-button:active svg > g,
+.global-menu-button.show svg > g{
transform: scale(0.85) rotate(-10deg);
}