Skip to content

Commit

Permalink
Ensure nested checkboxes are aligned correctly
Browse files Browse the repository at this point in the history
In v5.1.0 `.govuk-checkboxes` now uses flexbox, this caused a rendering issue when using nested checkboxes.

Nested checkboxes are not included as part of the design system and the `.govuk-checkboxes--nested` CSS class only exists in the publishing components gem. Updating the width to 100% we fix the alignment issue.
  • Loading branch information
MartinJJones committed Jun 17, 2024
1 parent b8ae101 commit f9f557f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
@import "govuk/components/checkboxes/checkboxes";

.govuk-checkboxes--nested {
margin-left: -(govuk-spacing(4) + 2px); // 22px
width: 100%;
margin-left: govuk-spacing(4);
box-sizing: border-box;
border-left-style: solid;
border-left-width: 4px;
Expand Down

0 comments on commit f9f557f

Please sign in to comment.