Skip to content

Commit

Permalink
fix(Checkbox): fix condensed checkbox sibling styling
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-wilson committed Sep 25, 2024
1 parent 1149f69 commit f3fbabf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Checkbox/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
padding-top: var(--space-s);
}

// normal checkboxes git a bit of extra spacing
// condensed checkboxes get no extra top spacing;
// any extra spacing should be applied by the consumer
.nds-checkbox-container--condensed ~ .nds-checkbox-container--condensed {
padding-top: 0;
}

// normal checkboxes get a bit of extra spacing
.nds-checkbox-container--normal ~ .nds-checkbox-container--normal {
margin-top: var(--space-default);
}


// reset paragraph spacing in markdown labels
.nds-checkbox-label p {
margin: 0;
Expand Down

0 comments on commit f3fbabf

Please sign in to comment.