Skip to content

Commit

Permalink
Merge pull request #33871 from dimagi/em/checkbox-vertical-align
Browse files Browse the repository at this point in the history
Fix checkbox + radio button misalignment
  • Loading branch information
nospame committed Dec 19, 2023
2 parents e35bc99 + a18a988 commit 81481ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
&:last-of-type {
margin-bottom: 0;
}
input[type="checkbox"] {
margin-top: 2.5px;
}
}

.query-description {
Expand Down
6 changes: 6 additions & 0 deletions corehq/apps/hqwebapp/static/hqwebapp/less/_hq/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ legend .subtext {
padding-bottom: 5px;
}

.checkbox, .radio {
input[type="checkbox"], input[type="radio"] {
margin-top: 1.5px;
}
}

.checkbox-table-cell {
margin: 0;
font-size: 20px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
+++
@@ -1,350 +1,7 @@
@@ -1,356 +1,7 @@
-// FORM ACTIONS from TWBS 2
-// ------------
-
Expand Down Expand Up @@ -43,6 +43,12 @@
- padding-bottom: 5px;
-}
-
-.checkbox, .radio {
- input[type="checkbox"], input[type="radio"] {
- margin-top: 1.5px;
- }
-}
-
-.checkbox-table-cell {
- margin: 0;
- font-size: 20px;
Expand Down Expand Up @@ -354,7 +360,7 @@
}

.form-hide-actions .form-actions {
@@ -355,15 +12,38 @@
@@ -361,15 +12,38 @@
.validationMessage {
display: block;
padding-top: 8px;
Expand Down

0 comments on commit 81481ab

Please sign in to comment.