Skip to content

Commit

Permalink
fix selector block bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vinimarcili committed Sep 13, 2023
1 parent 9dadf17 commit bf2575c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/components/sq-selector/sq-selector.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
block: block,
}"
>
<label [for]="id" *ngIf="leftLabel" [ngClass]="{ block: block }">
<label [for]="id" *ngIf="leftLabel">
<ng-container
*ngTemplateOutlet="leftLabel; context: context"
></ng-container>
Expand All @@ -32,13 +32,12 @@
[for]="id"
[ngClass]="{
disabled: disabled,
'hide-input': hideInput,
block: block
'hide-input': hideInput
}"
class="checkbox {{ type }}"
></label>
<label [for]="id" *ngIf="label" [innerHtml]="label | universalSafe"></label>
<label [for]="id" *ngIf="rightLabel" [ngClass]="{ block: block }">
<label [for]="id" *ngIf="rightLabel">
<ng-container
*ngTemplateOutlet="rightLabel; context: context"
></ng-container>
Expand Down
6 changes: 3 additions & 3 deletions src/components/sq-selector/sq-selector.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.hide-input {
display: none !important;
}
label.block {
width: 100%;
}
}
.block {
width: 100%;
}
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@squidit/ngx-css",
"version": "1.1.102",
"version": "1.1.103",
"peerDependencies": {
"@angular/common": ">=15.0.0",
"@angular/core": ">=15.0.0",
Expand Down

0 comments on commit bf2575c

Please sign in to comment.