Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{% if anchor_id != 'toggle-correlation-description' %}
<div class="col-sm-12 text-end">
<button class="btn btn-light"
<button class="btn btn-light toggle-details-button"
data-bs-toggle="collapse"
data-bs-target="#bottom-{{ anchor_id }}, #minifreqtable{{ anchor_id }}"
aria-expanded="true"
aria-controls="#bottom-{{ anchor_id }}, #minifreqtable{{ anchor_id }}">
{{ text }}
aria-expanded="false"
aria-controls="bottom-{{ anchor_id }} minifreqtable{{ anchor_id }}">
<span class="more-details">{{ text }}</span>
<span class="less-details">Less details</span>
<span class="details-arrow" aria-hidden="true"></span>
</button>
</div>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,25 @@ span[data-bs-toggle="tooltip"] {
background: var(--bs-secondary-bg-subtle);
color: var(--bs-secondary-text-emphasis);
}

/* Toggle details button states */

.toggle-details-button .less-details {
display: none;
}

.toggle-details-button[aria-expanded="true"] .more-details {
display: none;
}

.toggle-details-button[aria-expanded="true"] .less-details {
display: inline;
}

.toggle-details-button .details-arrow::after {
content: " ▼";
}

.toggle-details-button[aria-expanded="true"] .details-arrow::after {
content: " ▲";
}