Skip to content

Commit

Permalink
CONCD-1007 Invert filter slider should be centered between On and Off…
Browse files Browse the repository at this point in the history
… (currently much closer to Off) (#2632)
  • Loading branch information
rasarkar authored Dec 11, 2024
1 parent 91f009f commit 34813c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions concordia/static/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ body .form-check-input {
opacity: 1;
}

#invert-form div {
margin-left: 10px;
margin-right: 0;
}

#invert:checked {
background-color: $blue;
border-color: $blue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div id="invert-filter" class="tab-pane pt-2" role="tabpanel" style="background-color: white;">
<form id="invert-form" onsubmit="return false;" class="d-flex justify-content-center">
<label class="ms-2 align-middle">Off</label>
<div class="form-check form-switch custom-control-inline ms-1 me-2">
<div class="form-check form-switch custom-control-inline">
<input type="checkbox" id="invert" name="invert" class="form-check-input" role="switch" />
<label class="form-check-label" for="invert"><span class="visually-hidden">Invert</span></label>
</div>
Expand Down

0 comments on commit 34813c5

Please sign in to comment.