Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style/dropdowns: tweak the appearance of keyboard selected items
Adorian Doran25905ebff7c4
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex e1299bca0b..2036f0bd88 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -475,9 +475,9 @@ body #context-menu-container .dropdown-item > span {.dropdown-item.active,.dropdown-item:focus {- color: var(--active-item-text-color) !important;- background-color: var(--active-item-background-color) !important;- border-color: var(--active-item-border-color) !important;+ color: var(--active-item-text-color);+ background-color: var(--active-item-background-color);+ border-color: var(--active-item-border-color);outline: none;}diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.cssindex 50bc058a0f..9488332bc0 100644--- a/apps/client/src/stylesheets/theme-next/base.css+++ b/apps/client/src/stylesheets/theme-next/base.css@@ -160,6 +160,16 @@ body.mobile .dropdown-submenu .dropdown-toggle {cursor: default !important;}+:root .dropdown-item:focus-visible {+ outline: 2px solid var(--input-focus-outline-color) !important;+ background-color: transparent;+ color: unset;+}++:root .dropdown-item:active {+ background: unset;+}+body.mobile .dropdown-submenu {padding: 0 !important;}