Skip to content

Commit 5be204a

Browse files
authored
docs(material/button): Clean up progressIndicator docs (#32934)
These changes were intended in #32698 but a bad merge caused them to be dropped.
1 parent a4cb966 commit 5be204a

File tree

4 files changed

+9
-109
lines changed

4 files changed

+9
-109
lines changed

src/components-examples/material/button/button-overview/button-overview-example.html

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
<button matButton>Basic</button>
55
<button matButton disabled>Disabled</button>
66
<a matButton href="https://www.google.com/" target="_blank">Link</a>
7-
<button matButton showProgress="true">
8-
Progress
9-
<mat-progress-spinner
10-
progressIndicator
11-
mode="indeterminate"
12-
diameter="20"
13-
aria-label="Loading"
14-
tabindex=""
15-
/>
16-
</button>
177
</div>
188
</section>
199
<mat-divider/>
@@ -23,16 +13,6 @@
2313
<button matButton="elevated">Basic</button>
2414
<button matButton="elevated" disabled>Disabled</button>
2515
<a matButton="elevated" href="https://www.google.com/" target="_blank">Link</a>
26-
<button matButton="elevated" showProgress="true">
27-
Progress
28-
<mat-progress-spinner
29-
progressIndicator
30-
mode="indeterminate"
31-
diameter="20"
32-
aria-label="Loading"
33-
tabindex=""
34-
/>
35-
</button>
3616
</div>
3717
</section>
3818
<mat-divider/>
@@ -42,16 +22,6 @@
4222
<button matButton="outlined">Basic</button>
4323
<button matButton="outlined" disabled>Disabled</button>
4424
<a matButton="outlined" href="https://www.google.com/" target="_blank">Link</a>
45-
<button matButton="outlined" showProgress="true">
46-
Progress
47-
<mat-progress-spinner
48-
progressIndicator
49-
mode="indeterminate"
50-
diameter="20"
51-
aria-label="Loading"
52-
tabindex=""
53-
/>
54-
</button>
5525
</div>
5626
</section>
5727
<mat-divider/>
@@ -61,16 +31,6 @@
6131
<button matButton="filled">Basic</button>
6232
<button matButton="filled" disabled>Disabled</button>
6333
<a matButton="filled" href="https://www.google.com/" target="_blank">Link</a>
64-
<button matButton="filled" showProgress="true">
65-
Progress
66-
<mat-progress-spinner
67-
progressIndicator
68-
mode="indeterminate"
69-
diameter="20"
70-
aria-label="Loading"
71-
tabindex=""
72-
/>
73-
</button>
7434
</div>
7535
</section>
7636
<mat-divider/>
@@ -80,16 +40,6 @@
8040
<button matButton="tonal" >Basic</button>
8141
<button matButton="tonal" disabled>Disabled</button>
8242
<a matButton="tonal" href="https://www.google.com/" target="_blank">Link</a>
83-
<button matButton="tonal" showProgress="true">
84-
Progress
85-
<mat-progress-spinner
86-
progressIndicator
87-
mode="indeterminate"
88-
diameter="20"
89-
aria-label="Loading"
90-
tabindex=""
91-
/>
92-
</button>
9343
</div>
9444
</section>
9545
<mat-divider/>
@@ -103,16 +53,6 @@
10353
<button matIconButton disabled aria-label="Example icon button with a open in new tab icon">
10454
<mat-icon>open_in_new</mat-icon>
10555
</button>
106-
<button matIconButton showProgress="true" aria-label="Example icon button with a download icon">
107-
<mat-icon>download</mat-icon>
108-
<mat-progress-spinner
109-
progressIndicator
110-
mode="indeterminate"
111-
diameter="20"
112-
aria-label="Loading"
113-
tabindex=""
114-
/>
115-
</button>
11656
</div>
11757
</div>
11858
</section>
@@ -127,16 +67,6 @@
12767
<button matFab disabled aria-label="Example icon button with a heart icon">
12868
<mat-icon>favorite</mat-icon>
12969
</button>
130-
<button matFab showProgress="true" aria-label="Example icon button with a skull icon">
131-
<mat-icon>skull</mat-icon>
132-
<mat-progress-spinner
133-
progressIndicator
134-
mode="indeterminate"
135-
diameter="20"
136-
aria-label="Loading"
137-
tabindex=""
138-
/>
139-
</button>
14070
</div>
14171
</div>
14272
</section>
@@ -151,16 +81,6 @@
15181
<button matMiniFab disabled aria-label="Example icon button with a home icon">
15282
<mat-icon>home</mat-icon>
15383
</button>
154-
<button matMiniFab showProgress="true" aria-label="Example icon button with a wifi icon">
155-
<mat-icon>wifi</mat-icon>
156-
<mat-progress-spinner
157-
progressIndicator
158-
mode="indeterminate"
159-
diameter="20"
160-
aria-label="Loading"
161-
tabindex=""
162-
/>
163-
</button>
16484
</div>
16585
</div>
16686
</section>
@@ -181,17 +101,6 @@
181101
<mat-icon>favorite</mat-icon>
182102
Link
183103
</a>
184-
<button matFab extended showProgress="true">
185-
<mat-icon>favorite</mat-icon>
186-
Progress
187-
<mat-progress-spinner
188-
progressIndicator
189-
mode="indeterminate"
190-
diameter="20"
191-
aria-label="Loading"
192-
tabindex=""
193-
/>
194-
</button>
195104
</div>
196105
</div>
197106
</section>

src/components-examples/material/button/button-overview/button-overview-example.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {Component} from '@angular/core';
22
import {MatIconModule} from '@angular/material/icon';
33
import {MatDividerModule} from '@angular/material/divider';
44
import {MatButtonModule} from '@angular/material/button';
5-
import {MatProgressSpinner} from '@angular/material/progress-spinner';
65

76
/**
87
* @title Button overview
@@ -11,6 +10,6 @@ import {MatProgressSpinner} from '@angular/material/progress-spinner';
1110
selector: 'button-overview-example',
1211
templateUrl: 'button-overview-example.html',
1312
styleUrl: 'button-overview-example.css',
14-
imports: [MatButtonModule, MatDividerModule, MatIconModule, MatProgressSpinner],
13+
imports: [MatButtonModule, MatDividerModule, MatIconModule],
1514
})
1615
export class ButtonOverviewExample {}
Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
<section>
2-
<mat-checkbox
3-
(change)="toggleShowProgress()"
4-
>
5-
Show the progress indicator
6-
</mat-checkbox>
7-
</section>
81
<section>
92
<h3>Button with a MatProgressSpinner</h3>
10-
<button matButton="outlined" [showProgress]="showProgress()">
11-
Download
3+
<button matButton="outlined" [showProgress]="showProgress()" (click)="toggleShowProgress()">
4+
Click to toggle progress
125
<mat-progress-spinner
136
progressIndicator
147
mode="indeterminate"
@@ -20,10 +13,10 @@ <h3>Button with a MatProgressSpinner</h3>
2013
</section>
2114
<section>
2215
<h3>Button with a custom progress indicator</h3>
23-
<button matButton="outlined" [showProgress]="showProgress()">
24-
Download
25-
<div progressIndicator role="progressbar" aria-valuemin="0" aria-valuemax="100">
26-
Loading...
27-
</div>
16+
<button matButton="outlined" [showProgress]="showProgress()" (click)="toggleShowProgress()">
17+
Click to toggle progress
18+
<div progressIndicator role="progressbar" aria-valuemin="0" aria-valuemax="100">
19+
Loading...
20+
</div>
2821
</button>
2922
</section>

src/components-examples/material/button/button-progress-indicator/button-progress-indicator-example.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {Component, signal} from '@angular/core';
22
import {MatButton} from '@angular/material/button';
3-
import {MatCheckbox} from '@angular/material/checkbox';
43
import {MatProgressSpinner} from '@angular/material/progress-spinner';
54

65
/**
@@ -9,7 +8,7 @@ import {MatProgressSpinner} from '@angular/material/progress-spinner';
98
@Component({
109
selector: 'button-progress-indicator-example',
1110
templateUrl: 'button-progress-indicator-example.html',
12-
imports: [MatButton, MatCheckbox, MatProgressSpinner],
11+
imports: [MatButton, MatProgressSpinner],
1312
})
1413
export class ButtonProgressIndicatorExample {
1514
protected readonly showProgress = signal(false);

0 commit comments

Comments
 (0)