Skip to content

Commit c35dedf

Browse files
palbizuPatricio Albizu
andauthored
feat: Adding boolean to inactive isOverMaxBorder (#1448)
Co-authored-by: Patricio Albizu <[email protected]>
1 parent d9a207b commit c35dedf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

projects/observability/src/shared/components/bar-gauge/bar-gauge.component.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ import {
3535
</div>
3636
</div>
3737
<div class="bar" [ngClass]="this.display">
38-
<div #maxValueBar class="max-value-bar" [ngClass]="{ 'over-max-value': this.overMaxValue }">
38+
<div
39+
#maxValueBar
40+
class="max-value-bar"
41+
[ngClass]="{ 'over-max-value': this.overMaxValue && this.isOverMaxBorderActive }"
42+
>
3943
<div class="segment-bars">
4044
<div
4145
#segmentBars
@@ -85,6 +89,9 @@ export class BarGaugeComponent implements OnChanges, AfterViewInit {
8589
@Input()
8690
public segments?: Segment[] = [];
8791

92+
@Input()
93+
public isOverMaxBorderActive: boolean = true;
94+
8895
@Input()
8996
public display: BarGaugeStyle = BarGaugeStyle.Regular;
9097

0 commit comments

Comments
 (0)