Skip to content

Commit

Permalink
fix: check box extra margin #1189
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 14, 2023
1 parent fe630b6 commit 6d7f132
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,28 @@

<ng-template prizmDocPageTab prizmDocHost>
<prizm-doc-demo>
<prizm-checkbox
#element
[prizmDocHostElement]="element"
[checked]="checked"
[disabled]="disabled"
[size]="size"
[indeterminate]="indeterminate"
>
{{ label }}
</prizm-checkbox>
<div class="box">
<prizm-checkbox
#element
[prizmDocHostElement]="element"
[checked]="checked"
[disabled]="disabled"
[size]="size"
[indeterminate]="indeterminate"
>
{{ label }}
</prizm-checkbox>
</div>
<div class="box">
<prizm-checkbox
#element
[prizmDocHostElement]="element"
[checked]="checked"
[disabled]="disabled"
[size]="size"
[indeterminate]="indeterminate"
></prizm-checkbox>
</div>
</prizm-doc-demo>
<prizm-doc-documentation>
<ng-template [(documentationPropertyValue)]="label" documentationPropertyMode="ng-content">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:host {
.box {
margin-bottom: 16px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
font-size: 14px;
line-height: 20px;
}

&:empty {
display: none;
}
}

:host-context(.prizm-checkbox--disabled) {
Expand Down

0 comments on commit 6d7f132

Please sign in to comment.