Force accordions to always be open inside the Canvas editor
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3547391. --> Reported by: [pameeela](https://www.drupal.org/user/1431110) Related to !76 !72 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When accordions are added to Canvas, they continuously open and close without user interaction. Additionally, it's unclear how to add content inside the accordion components. The only way to fix it is enabling the checkbox &ldquo;Open by default&rdquo;.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Accordions should always be open in the Canvas editor regardless of the display setting. For now, let's use the <code>.path-canvas</code> class, until <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3492358" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3492358</a></span> is fixed, since that is a stable target and not a blocker and this is a pretty bad UX bug. Unfortunately this means the accordions will always be open in the preview as well, but I think that is still preferable to the current state.</p> > Related issue: [Issue #3492358](https://www.drupal.org/node/3492358)
issue