Skip to content
Myr

Fix buttons in tutorial to toggle labels when clicked on (#3493)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by GitHub · parent 2beac1a · Browse files · 2 files+10 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−6 removed

  • other:+10 added−6 removed

2 files+10 added−6 removed

modified:docs/public/css/style.css+9 added-5 removed
modified:docs/templates/default.html.j2+1 added-1 removed
16 unmodified lines
17 <div class="tutorial-example mb-3">18 <div class="d-flex accordion-heading me-2">19 <pre class="flex-grow-1 me-0 mb-0" tabindex="0">{{ item.command }}</pre>20 <button type="button" class="btn btn-sm btn-secondary text-body-secondary bg-secondary-subtle link-body-emphasis flex-shrink-0 d-flex align-items-center border border-start-0 d-print-none"21 data-bs-toggle="collapse" data-bs-target="#result{{ resultID }}" aria-expanded="false" aria-controls="result{{ resultID }}">Show result</button>21 data-bs-toggle="collapse" data-bs-target="#result{{ resultID }}" aria-expanded="false" aria-controls="result{{ resultID }}"><span class="show-result-text">Show result</span><span class="hide-result-text">Hide result</span></button>22 </div>23 <pre id="result{{ resultID }}" class="accordion-body collapse p-3 border-top-0 d-print-block" tabindex="0">{{ item.result }}</pre>24 </div>25 {%- endif %}
6 unmodified lines