Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/collapsible lists: fix an issue

Adorian Doran24ecee65ab53
diff --git a/packages/ckeditor5/src/theme/collapsible_list_items.css b/packages/ckeditor5/src/theme/collapsible_list_items.css
index fa70437833..ee1f91ac35 100644
--- a/packages/ckeditor5/src/theme/collapsible_list_items.css
+++ b/packages/ckeditor5/src/theme/collapsible_list_items.css
@@ -88,7 +88,8 @@
/* A find match temporarily reveals a collapsed item's children (view-only, the persisted state
* stays collapsed). Point the arrow the expanded way so the visible nested list isn't contradicted
- * by a "collapsed" arrow. Placed last so it wins over the collapsed rules on equal specificity. */
+ * by a "collapsed" arrow. The extra `.trilium-list-temporarily-expanded` class makes this rule more
+ * specific than the collapsed-arrow rule above, so it wins regardless of source order. */
.ck-content.ck-editor__editable li[data-trilium-collapsed="true"].trilium-list-temporarily-expanded::before {
--_arrow-rotation: 90deg;
}