Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove extra indent in accordion component.
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<div class="usa-accordion{% | ||
if accordion.variant %} usa-accordion--{{ accordion.variant }}{% endif %}"{% | ||
if accordion.multiselectable == true %} aria-multiselectable="true"{% endif %}> | ||
{% for item in accordion.items %} | ||
<!-- Use the accurate heading level to maintain the document outline --> | ||
<h2 class="usa-accordion__heading"> | ||
<button class="usa-accordion__button" | ||
aria-expanded="{{ item.expanded | default('false') }}" | ||
aria-controls="{{ accordion.id_prefix }}{{ item.id }}"> | ||
{{ item.title }} | ||
</button> | ||
</h2> | ||
<div id="{{ accordion.id_prefix }}{{ item.id }}" class="usa-accordion__content usa-prose"> | ||
{{ item.content | safe }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<div class="usa-accordion{% | ||
if accordion.variant %} usa-accordion--{{ accordion.variant }}{% endif %}"{% | ||
if accordion.multiselectable == true %} aria-multiselectable="true"{% endif %}> | ||
{% for item in accordion.items %} | ||
<!-- Use the accurate heading level to maintain the document outline --> | ||
<h2 class="usa-accordion__heading"> | ||
<button class="usa-accordion__button" | ||
aria-expanded="{{ item.expanded | default('false') }}" | ||
aria-controls="{{ accordion.id_prefix }}{{ item.id }}"> | ||
{{ item.title }} | ||
</button> | ||
</h2> | ||
<div id="{{ accordion.id_prefix }}{{ item.id }}" class="usa-accordion__content usa-prose"> | ||
{{ item.content | safe }} | ||
</div> | ||
{% endfor %} | ||
</div> |