Fix buttons in tutorial to toggle labels when clicked on (#3493)
This commit is contained in:
1 parent
2beac1aed0
commit
c3d3e7d656
2 files changed
+10
-6
No files matched your search
@@ -52,13 +52,17 @@ pre {
|
|||||||
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
button{
|
button {
|
||||||
&[aria-expanded=false] .bi-chevron-down {
|
&[aria-expanded=false] {
|
||||||
display: none;
|
.bi-chevron-down, .hide-result-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&[aria-expanded=true] .bi-chevron-right {
|
&[aria-expanded=true] {
|
||||||
display: none;
|
.bi-chevron-right, .show-result-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
<div class="d-flex accordion-heading me-2">
|
<div class="d-flex accordion-heading me-2">
|
||||||
<pre class="flex-grow-1 me-0 mb-0" tabindex="0">{{ item.command }}</pre>
|
<pre class="flex-grow-1 me-0 mb-0" tabindex="0">{{ item.command }}</pre>
|
||||||
<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"
|
<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"
|
||||||
data-bs-toggle="collapse" data-bs-target="#result{{ resultID }}" aria-expanded="false" aria-controls="result{{ resultID }}">Show result</button>
|
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>
|
||||||
</div>
|
</div>
|
||||||
<pre id="result{{ resultID }}" class="accordion-body collapse p-3 border-top-0 d-print-block" tabindex="0">{{ item.result }}</pre>
|
<pre id="result{{ resultID }}" class="accordion-body collapse p-3 border-top-0 d-print-block" tabindex="0">{{ item.result }}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user