Skip to content

Commit ccdd0f2

Browse files
crisbetotinayuangao
authored andcommitted
chore(progress-spinner): remove md-progress-circle alias (#3735)
Removes the deprecated `md-progress-circle` alias.
1 parent 68db6ba commit ccdd0f2

File tree

6 files changed

+8
-26
lines changed

6 files changed

+8
-26
lines changed

src/examples/progress-spinner-configurable/progress-spinner-configurable-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<md-card>
22
<md-card-content>
3-
<h2 class="example-h2">Progress circle configuration</h2>
3+
<h2 class="example-h2">Progress spinner configuration</h2>
44

55
<section class="example-section">
66
<label class="example-margin">Color:</label>
@@ -39,11 +39,11 @@ <h2 class="example-h2">Progress circle configuration</h2>
3939
<md-card-content>
4040
<h2 class="example-h2">Result</h2>
4141

42-
<md-progress-circle
42+
<md-progress-spinner
4343
class="example-margin"
4444
[attr.color]="color"
4545
[mode]="mode"
4646
[value]="value">
47-
</md-progress-circle>
47+
</md-progress-spinner>
4848
</md-card-content>
4949
</md-card>

src/lib/core/compatibility/compatibility.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export const MAT_ELEMENTS_SELECTOR = `
5959
mat-option,
6060
mat-placeholder,
6161
mat-progress-bar,
62-
mat-progress-circle,
6362
mat-pseudo-checkbox,
6463
mat-radio-button,
6564
mat-radio-group,
@@ -120,7 +119,6 @@ export const MD_ELEMENTS_SELECTOR = `
120119
md-option,
121120
md-placeholder,
122121
md-progress-bar,
123-
md-progress-circle,
124122
md-pseudo-checkbox,
125123
md-radio-button,
126124
md-radio-group,

src/lib/progress-spinner/_progress-spinner-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$accent: map-get($theme, accent);
88
$warn: map-get($theme, warn);
99

10-
.mat-progress-spinner, .mat-progress-circle, .mat-spinner {
10+
.mat-progress-spinner, .mat-spinner {
1111
path {
1212
stroke: mat-color($primary, 600);
1313
}

src/lib/progress-spinner/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
MdProgressSpinner,
55
MdSpinner,
66
MdProgressSpinnerCssMatStyler,
7-
MdProgressCircleCssMatStyler
87
} from './progress-spinner';
98

109

@@ -14,14 +13,12 @@ import {
1413
MdProgressSpinner,
1514
MdSpinner,
1615
CompatibilityModule,
17-
MdProgressSpinnerCssMatStyler,
18-
MdProgressCircleCssMatStyler
16+
MdProgressSpinnerCssMatStyler
1917
],
2018
declarations: [
2119
MdProgressSpinner,
2220
MdSpinner,
23-
MdProgressSpinnerCssMatStyler,
24-
MdProgressCircleCssMatStyler
21+
MdProgressSpinnerCssMatStyler
2522
],
2623
})
2724
class MdProgressSpinnerModule {

src/lib/progress-spinner/progress-spinner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's
3-
center. The center of the circle with remain at the center of the md-progress-circle
3+
center. The center of the circle will remain at the center of the md-progress-spinner
44
element containing the SVG.
55
-->
66
<svg viewBox="0 0 100 100"

src/lib/progress-spinner/progress-spinner.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,12 @@ type EasingFn = (currentTime: number, startValue: number,
4444
export class MdProgressSpinnerCssMatStyler {}
4545

4646

47-
/**
48-
* Directive whose purpose is to add the mat- CSS styling to this selector.
49-
* @docs-private
50-
*/
51-
@Directive({
52-
selector: 'md-progress-circle, mat-progress-circle',
53-
host: {
54-
'[class.mat-progress-circle]': 'true'
55-
}
56-
})
57-
export class MdProgressCircleCssMatStyler {}
58-
59-
6047
/**
6148
* <md-progress-spinner> component.
6249
*/
6350
@Component({
6451
moduleId: module.id,
65-
selector: 'md-progress-spinner, mat-progress-spinner, md-progress-circle, mat-progress-circle',
52+
selector: 'md-progress-spinner, mat-progress-spinner',
6653
host: {
6754
'role': 'progressbar',
6855
'[attr.aria-valuemin]': '_ariaValueMin',

0 commit comments

Comments
 (0)