Skip to content

Commit c344f15

Browse files
committed
refactor(linear-bar): use *ngIf instead of ngClass in progress bar template
1 parent b038f41 commit c344f15

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

projects/igniteui-angular/src/lib/core/styles/components/progress/_progress-component.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115

116116
@include e(text, $m: hidden) {
117117
@extend %circular-text !optional;
118-
@extend %circular-text--hidden !optional;
119118
}
120119

121120
@include m(indeterminate) {
@@ -124,9 +123,5 @@
124123
@include e(outer) {
125124
@extend %circular-outer--indeterminate !optional;
126125
}
127-
128-
@include e(text) {
129-
@extend %circular-text--hidden !optional;
130-
}
131126
}
132127
}

projects/igniteui-angular/src/lib/core/styles/components/progress/_progress-theme.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@
292292
fill: --var($theme, 'text-color');
293293
}
294294

295-
%circular-text--hidden {
296-
visibility: hidden;
297-
}
298-
299295
@include keyframes('indeterminate-accordion') {
300296
50% {
301297
stroke-dashoffset: 260;

projects/igniteui-angular/src/lib/progressbar/templates/circular-bar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[attr.aria-valuenow]="value">
88
<circle class="igx-circular-bar__inner" cx="50" cy="50" r="46" />
99
<circle #circle class="igx-circular-bar__outer" cx="50" cy="50" r="46" />
10-
<text [class.igx-circular-bar__text--hidden]="!textVisibility" text-anchor="middle" x="50" y="60">
10+
<text *ngIf="textVisibility" text-anchor="middle" x="50" y="60">
1111
<ng-container *ngTemplateOutlet="textTemplate ? textTemplate.template : defaultTextTemplate; context: context">
1212
</ng-container>
1313
</text>

0 commit comments

Comments
 (0)