Skip to content

Commit

Permalink
refactor: close step accordions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Sep 11, 2023
1 parent 2a0d019 commit e54061c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/tour/templates/tour/snippets/tour_step.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ <h3 class="accordion-header" id="headingOne">
<div class="accordion-header--text">
Step <span class="step-idx">0</span>
</div>
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{ step_id }}"
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{ step_id }}"
aria-expanded="true" aria-controls="collapse-{{ step_id }}">
</button>
<button class="remove-step btn btn-danger" data-step-id="{{ step_id }}">{{ _("Delete") }}</button>
</h3>
<div id="collapse-{{ step_id }}" class="accordion-collapse collapse show" aria-labelledby="headingOne"
<div id="collapse-{{ step_id }}" class="accordion-collapse collapse" aria-labelledby="headingOne"
data-bs-parent="#step-{{ step_id }}">
<div class="accordion-body">
<fieldset class="tour-step" id="step_{{ step_id }}" data-step-id="{{ step_id }}">
Expand Down

0 comments on commit e54061c

Please sign in to comment.