Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoBonanno authored and astagi committed Jul 14, 2023
1 parent 50cb1e1 commit 7604e36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ItRangeComponent extends ItAbstractFormComponent<number | null | un
).subscribe(() => this.updateSliderColor());
}

ngOnChanges(changes: SimpleChanges) {
override ngOnChanges(changes: SimpleChanges) {
if (changes['leftColor']) {
this.slider.nativeElement.style.setProperty('--range-left-color', this.leftColor ?? null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ <h3>Barra personalizzata</h3>
<div class="bd-example">

<div class="row">
<div class="col">
<div class="col-sm-12 col-md-6">
<it-range leftColor="var(--bs-primary)"
rightColor="var(--bs-gray-300)"></it-range>
</div>

<div class="col">
<div class="col-sm-12 col-md-6">
<it-range leftColor="var(--bs-warning)"
rightColor="#ffdc73"></it-range>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/range/range-example/range-example.component.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="bd-example">
<div class="row">
<div class="col">
<div class="col-sm-12 col-md-6">
<it-range label="Esempio ngModel" [(ngModel)]="rangeValue">
{{rangeValue}} %
</it-range>
</div>
<div class="col">
<div class="col-sm-12 col-md-6">
<form [formGroup]="formGroup">
<it-range label="Esempio FormGroup"
[min]="0" [max]="1000" [step]="2" formControlName="range">
Expand Down

1 comment on commit 7604e36

@vercel
Copy link

@vercel vercel bot commented on 7604e36 Jul 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.