Skip to content

Commit

Permalink
Fix(web): Make Item, Checkbox Item and Radio Item full width
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen authored and pavelklibani committed Dec 5, 2023
1 parent 02c0f7c commit 3bf097c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/scss/components/Checkbox/_Checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ $_field-name: 'Checkbox';

.Checkbox--item {
@include form-fields-tools.item();

display: flex;
}

.Checkbox--item.Checkbox--disabled {
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/scss/components/Radio/_Radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ $_field-name: 'Radio';

.Radio--item {
@include form-fields-tools.item();

display: flex;
}

.Radio--item.Radio--disabled {
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/scss/tools/_form-fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}

@mixin item() {
width: 100%;
padding: form-fields-theme.$item-spacing;
margin-block: 0;
border-radius: form-fields-theme.$item-border-radius;
Expand Down

0 comments on commit 3bf097c

Please sign in to comment.