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(note_type_chooser): distinguish the focused type from a hovered one
Elian Doranb48a1fca4b72
diff --git a/apps/client/src/stylesheets/theme-next/dialogs.css b/apps/client/src/stylesheets/theme-next/dialogs.cssindex 467f0401af..1062785177 100644--- a/apps/client/src/stylesheets/theme-next/dialogs.css+++ b/apps/client/src/stylesheets/theme-next/dialogs.css@@ -436,14 +436,12 @@ div.tn-tool-dialog {* NOTE TYPE CHOOSER DIALOG*/-.note-type-chooser-dialog div.note-type-dropdown {- /* Disable the active item highlighting since there is no use for it here */- --active-item-text-color: initial;- --active-item-background-color: initial;-- font-size: unset;-}--.note-type-chooser-dialog div.note-type-dropdown .dropdown-item span.tn-icon {- margin-inline-end: .25em;+/* Focus reads as fill plus ring, so it differs from hover in kind and not only in shade. :focus,+ not :focus-visible, so the pointer and keyboard paths match; the :hover selector holds the fill+ against style.css, which tints anything hovered that is not .active. */+:root .note-type-chooser-dialog .dropdown-item:focus,+:root .note-type-chooser-dialog .dropdown-item:focus:hover {+ outline: 2px solid var(--input-focus-outline-color) !important;+ outline-offset: -2px;+ background-color: var(--active-item-background-color) !important;}