Skip to content

Commit

Permalink
fix: reworking the terms checkbox styles
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Sep 12, 2024
1 parent 5155ef4 commit f69ce95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modal-checkout/checkout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,16 @@
margin-top: var(--newspack-ui-spacer-5, 24px);

label {
display: flex;
gap: 0; // We can't use the default label gap because there are multiple elements.
display: block;
margin: 0;
padding: 0 0 0 calc(var(--newspack-ui-spacer-4, 20px) + var(--newspack-ui-spacer-base, 8px)); // This is hacky but lets us pair the checkbox width + gap of normal checkboxes.
position: relative;
}

input {
inset: 0 auto auto 0;
margin: 2px var(--newspack-ui-spacer-base, 8px) 0 0;
position: absolute;
}
}
}
Expand Down

0 comments on commit f69ce95

Please sign in to comment.