Skip to content

Commit

Permalink
The discussion collapse works
Browse files Browse the repository at this point in the history
  • Loading branch information
JmScherer committed Sep 22, 2023
1 parent 378460a commit 00d6da4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/src/components/AnalysisView/DiscussionSection.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div class="rosalution-section-container">
<input type="checkbox" v-bind:id="section_toggle" />
<input type="checkbox" id="discussion_toggle" />
<div class="rosalution-section-header">
<h2 class="rosalution-section-header-text">Discussion</h2>
<span class="rosalution-section-center" data-test="header-datasets"/>
<button class="primary-button new-discussion-button">New Discussion</button>
<label class="collapsable-icon" v-bind:for="section_toggle">
<label class="collapsable-icon" for="discussion_toggle">
<font-awesome-icon icon="chevron-down" size="lg"/>
</label>
</div>
Expand Down Expand Up @@ -47,4 +47,12 @@ input[type="checkbox"] {
display: none;
}
.rosalution-section-container input[type="checkbox"]:checked ~ .section-content {
display: none;
}
input[type="checkbox"]:checked ~ .rosalution-section-header > span ~ label.collapsable-icon {
transform: scaleY(-1);
}
</style>

0 comments on commit 00d6da4

Please sign in to comment.