- Issue created by @rex.barkdoll
- Status changed to Closed: duplicate
8 months ago 9:53pm 20 March 2024 - πΊπΈUnited States smustgrave
Seems to be the same as β¨ CKEditor overwrites aria-expanded="true" to "false" upon save Active which still don't have fix for
- Status changed to Active
8 months ago 10:15pm 20 March 2024 - πΊπΈUnited States rex.barkdoll
No, I think this is a distinct issue. My problem is different from the other ticket because it deals with the hidden attribute on the accordion content, not the aria attribute on the button. I'm also not editing the source code, I'm trying to check the Start collapsed checkbox and have it work properly out of the box.
I think I found a solution to my problem while messing around:
In templates/embedded-content/accordion.html.twig
Update line 26 to the following:
<div id="{{ key }}" class="usa-accordion__content usa-prose" {% if startcollapsed == 1 %}hidden{% else %}{% endif %}>
- Status changed to Postponed: needs info
7 months ago 7:18pm 16 April 2024 - πΊπΈUnited States smustgrave
Tried replicating but it defaults to open, checking startcollapsed closes it. You shouldn't need the code in #3 per the docs in https://designsystem.digital.gov/components/accordion/ adding aria-expanded value sets that.
- Status changed to Closed: outdated
7 months ago 7:36pm 3 May 2024