Skip to content

Commit 477a85d

Browse files
Merge pull request #57 from klippa-app/fix/remove_chackbox_margin_when_no_caption
Removed checkbox margin when no caption is provided
2 parents a0a6b4b + 98cd456 commit 477a85d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

projects/klippa/ngx-enhancy-forms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@klippa/ngx-enhancy-forms",
3-
"version": "20.1.1",
3+
"version": "20.1.2",
44
"publishConfig": {
55
"access": "public"
66
},

projects/klippa/ngx-enhancy-forms/src/lib/elements/checkbox/checkbox.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="componentContainer">
22
<label>
33
<div class="checkboxContainer">
4-
<div class="checkBoxVisualContainer">
4+
<div class="checkBoxVisualContainer" [class.hasMargin]="!!caption">
55
<input type="checkbox" class="checkboxNative"
66
[(ngModel)]="innerValue"
77
(change)="setInnerValueAndNotify(innerValue); touch()"

projects/klippa/ngx-enhancy-forms/src/lib/elements/checkbox/checkbox.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ label {
2222
}
2323
.checkBoxVisualContainer {
2424
padding: 2px;
25-
margin-right: 10px;
2625
border-radius: 4px;
2726
&:focus-within {
2827
outline: 2px solid $primary;
2928
}
29+
&.hasMargin {
30+
margin-right: 10px;
31+
}
3032
}
3133
.caption {
3234
cursor: pointer;

0 commit comments

Comments
 (0)