Skip to content

Support Initially Expanded Accordions (<details open>) #9509

Description

@anyworx

Nextcloud Notes already supports collapsible sections (accordions) using the HTML <details> and <summary> elements.

However, these sections are always displayed in a collapsed state by default.

In HTML, the open attribute allows a <details> element to be expanded immediately when the page is loaded.

For example:

<details open>
<summary>Title</summary>

Content that is visible by default.

</details>

Currently, there appears to be no way to achieve this behavior in Nextcloud Notes.

Suggested Improvement

Please support the open attribute for <details> elements, allowing accordion sections to be expanded by default.

The expected behavior would be:

  • <details> — collapsed by default.
  • <details open> — expanded by default.
  • Users can still manually expand or collapse either type.
  • The initial expanded or collapsed state is preserved when reopening the note.

Expected Benefit

This would provide greater flexibility when organizing longer notes with collapsible sections.

Some sections are intended to remain visible by default, while others should only be expanded when needed. Supporting both behaviors would make accordions considerably more useful and bring Nextcloud Notes closer to standard HTML functionality.

Activity

  1. blizzz commented on Nov 2, 2026

    @blizzz
    Member

    Moving to text app as its component is rendering the contents

  2. transferred this issue fromnextcloud/noteson Nov 2, 2026
  3. blizzz commented on Nov 2, 2026

    @blizzz
    Member

    Actually this seems to be already implemented within #9049

    Can you check again on NC 35?

  4. mejo- commented on Nov 3, 2026

    @mejo-
    Member

    @blizzz it might have been reverted by my cleanup PRs, would have to check. Also, there was never a way in UI to actually insert a <details open> element, apart from uploading a Markdown file that already contains it.

  5. anyworx commented on Nov 7, 2026

    @anyworx
    Author
  6. blizzz commented on Nov 9, 2026

    @blizzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions