You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution offered was to have the accordions expanded by default and have JS collapse them on page load. Therefore, there is no need to specify an accordion as collapsed - only whether it should be expanded on page load. Example:
<!-- NO -->
<button class="usa-button-unstyled" aria-expanded="false" aria-controls="collapsible-0">
Accordion title
</button>
<div id="collapsible-0" class="usa-accordion-content" aria-hidden="true">
<pre><code class="language-markup">
<!-- some markup -->
</code></pre>
</div>
<!-- YES - collapsed by default -->
<button class="usa-button-unstyled" aria-controls="collapsible-0">
Accordion title
</button>
<div id="collapsible-0" class="usa-accordion-content">
<pre><code class="language-markup">
<!-- some markup -->
</code></pre>
</div>
<!-- YES - expanded by default -->
<button class="usa-button-unstyled" aria-expanded="true" aria-controls="collapsible-0">
Accordion title
</button>
<div id="collapsible-0" class="usa-accordion-content" aria-hidden="false">
<pre><code class="language-markup">
<!-- some markup -->
</code></pre>
</div>
Issue type
What happened
Many of the accordions on the site specify whether they are collapsed or not.
uswds/uswds#1122
The solution offered was to have the accordions expanded by default and have JS collapse them on page load. Therefore, there is no need to specify an accordion as collapsed - only whether it should be expanded on page load. Example:
Probably going to be related to #26
What I expected
Accordions would be using the latest solution from the USWDS.
Steps to reproduce the issue [optional]
The text was updated successfully, but these errors were encountered: