Skip to content

Commit c1540a9

Browse files
committed
fix: adjust styling
1 parent ab9c996 commit c1540a9

File tree

3 files changed

+36
-13
lines changed

3 files changed

+36
-13
lines changed

branching_xblock/static/css/branching_xblock.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,19 @@
314314
flex-wrap: wrap;
315315
}
316316

317+
.branching-scenario .choice-actions__secondary,
318+
.branching-scenario .choice-actions__primary {
319+
display: flex;
320+
align-items: center;
321+
gap: 0.75rem;
322+
flex-wrap: wrap;
323+
}
324+
325+
.branching-scenario .choice-actions__primary {
326+
margin-left: auto;
327+
justify-content: flex-end;
328+
}
329+
317330
.choice-submit-button {
318331
border: none;
319332
background-color: #0f62a1;
@@ -669,6 +682,12 @@
669682
align-items: stretch;
670683
}
671684

685+
.branching-scenario .choice-actions__secondary,
686+
.branching-scenario .choice-actions__primary {
687+
width: 100%;
688+
margin-left: 0;
689+
}
690+
672691
.undo-button,
673692
.reset-button,
674693
.choice-submit-button,

branching_xblock/static/handlebars/node-editor.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
<div class="bx-choices {{#if no_branches}}is-hidden{{/if}}" data-role="choices-section">
8080
<h3 class="bx-section-title">Choices</h3>
81-
<div class="bx-help bx-choices-help">When learner selects a choice, its score is added to their total score.</div>
81+
<div class="bx-help bx-choices-help">When a learner selects a choice, the score assigned to that choice is added to the total score.</div>
8282
<div class="choices-container" data-role="choices-container"></div>
8383
<button type="button" class="bx-btn bx-btn--secondary" data-role="add-choice">Add Choice</button>
8484
</div>

branching_xblock/static/html/branching_xblock.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@ <h3 class="choices-heading" data-role="choice-heading">Choose Next Step:</h3>
1616
<form class="choices-form" data-role="choice-form">
1717
<div class="choices-list" data-role="choice-list"></div>
1818
<div class="choice-actions">
19-
<button type="button" class="undo-button action-secondary btn-secondary" data-role="undo">
20-
Go Back
21-
</button>
22-
<button type="button" class="reset-button action-secondary btn-secondary" data-role="reset-activity" style="display: none;">
23-
Reset
24-
</button>
25-
<button type="button" class="show-report-button action-primary btn-primary" data-role="show-report" style="display: none;">
26-
Show Report
27-
</button>
28-
<button type="submit" class="choice-submit-button action-primary btn-primary" data-role="submit-choice" disabled>
29-
Submit
30-
</button>
19+
<div class="choice-actions__secondary">
20+
<button type="button" class="undo-button action-secondary btn-secondary" data-role="undo">
21+
Go Back
22+
</button>
23+
<button type="button" class="reset-button action-secondary btn-secondary" data-role="reset-activity" style="display: none;">
24+
Reset
25+
</button>
26+
</div>
27+
<div class="choice-actions__primary">
28+
<button type="button" class="show-report-button action-primary btn-primary" data-role="show-report" style="display: none;">
29+
Show Report
30+
</button>
31+
<button type="submit" class="choice-submit-button action-primary btn-primary" data-role="submit-choice" disabled>
32+
Submit
33+
</button>
34+
</div>
3135
</div>
3236
</form>
3337
</div>

0 commit comments

Comments
 (0)