Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support Initially Expanded Accordions (`<details open>`)

Aperta
#2,075 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
html, javascript, markdown
Ambito
frontend

Direzione di ricerca

The payload names no files, so search the codebase for where details and summary are handled in the Markdown rendering path, and check whether the HTML sanitizer strips the open attribute. The open or closed state must also survive reopening the note, which may involve the note-saving path. Done when <details open> renders expanded, plain <details> stays collapsed, and users can still toggle both.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

0. Needs triage feature request needs discussion

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.

Lingua principale
JavaScript
Stelle
740
Fork
162
Merge medio
19h 23m
PR unite (30g)
49

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/notes

Tutte le issue di nextcloud/notes

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.