Skip to content

Build your personal knowledge base with Trilium Notes

style/collapsible: use low profile style for the expand/collapse button

Adorian Doran5e00d6a305eb
diff --git a/apps/client/src/widgets/react/Collapsible.css b/apps/client/src/widgets/react/Collapsible.css
index 7acf628f71..00aeb2bf7a 100644
--- a/apps/client/src/widgets/react/Collapsible.css
+++ b/apps/client/src/widgets/react/Collapsible.css
@@ -3,10 +3,7 @@
line-height: 1em;
display: flex;
align-items: center;
- appearance: none;
- background: transparent;
- border: 0;
- color: inherit;
+ padding-inline-end: 12px;
.arrow {
font-size: 1.3em;
diff --git a/apps/client/src/widgets/react/Collapsible.tsx b/apps/client/src/widgets/react/Collapsible.tsx
index 212de203dc..cdbd0dcac5 100644
--- a/apps/client/src/widgets/react/Collapsible.tsx
+++ b/apps/client/src/widgets/react/Collapsible.tsx
@@ -57,7 +57,7 @@ export function ExternallyControlledCollapsible({ title, children, className, ex
"with-transition": transitionEnabled
})}>
<button
- className="collapsible-title"
+ className="collapsible-title tn-low-profile"
onClick={() => setExpanded(!expanded)}
aria-expanded={expanded}
aria-controls={contentId}