Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit ae14f25

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(progress-circular): add the dark theme background in the demo
Fixes the `progressCircular` demo showing the dark theme colors, but on a light background. Also makes the padding consistent with the other demos. Closes #7775
1 parent 9a8a079 commit ae14f25

File tree

1 file changed

+42
-40
lines changed
  • src/components/progressCircular/demoBasicUsage

1 file changed

+42
-40
lines changed
Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,57 @@
1-
<div ng-controller="AppCtrl as vm" layout="column" layout-margin style="padding:25px;" ng-cloak>
1+
<div ng-controller="AppCtrl as vm" layout="column" ng-cloak>
22

3-
<h4 style="margin-top:10px">Determinate</h4>
3+
<md-content layout-padding>
4+
<h4>Determinate</h4>
45

5-
<p>For operations where the percentage of the operation completed can be determined, use a determinate indicator. They
6-
give users a quick sense of how long an operation will take.</p>
6+
<p>For operations where the percentage of the operation completed can be determined, use a determinate indicator. They
7+
give users a quick sense of how long an operation will take.</p>
78

8-
<div layout="row" layout-sm="column" layout-align="space-around">
9-
<md-progress-circular md-mode="determinate" value="{{vm.determinateValue}}"></md-progress-circular>
10-
</div>
9+
<div layout="row" layout-sm="column" layout-align="space-around">
10+
<md-progress-circular md-mode="determinate" value="{{vm.determinateValue}}"></md-progress-circular>
11+
</div>
1112

12-
<h4>Indeterminate</h4>
13+
<h4>Indeterminate</h4>
1314

14-
<p>For operations where the user is asked to wait a moment while something finishes up, and it's not necessary to
15-
expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.</p>
15+
<p>For operations where the user is asked to wait a moment while something finishes up, and it's not necessary to
16+
expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.</p>
1617

17-
<div layout="row" layout-sm="column" layout-align="space-around">
18-
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
19-
</div>
18+
<div layout="row" layout-sm="column" layout-align="space-around">
19+
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
20+
</div>
2021

21-
<h4>Theming</h4>
22+
<h4>Theming</h4>
2223

23-
<p>
24-
Your current theme colors can be used to easily colorize your progress indicator with `md-warn` or `md-accent`
25-
colors.
26-
</p>
24+
<p>
25+
Your current theme colors can be used to easily colorize your progress indicator with `md-warn` or `md-accent`
26+
colors.
27+
</p>
2728

28-
<div ng-show="vm.activated" layout="row" layout-sm="column" layout-align="space-around">
29-
<md-progress-circular class="md-hue-2" md-diameter="20px"></md-progress-circular>
30-
<md-progress-circular class="md-accent" md-diameter="40"></md-progress-circular>
31-
<md-progress-circular class="md-accent md-hue-1" md-diameter="60"></md-progress-circular>
32-
<md-progress-circular class="md-warn md-hue-3" md-diameter="70"></md-progress-circular>
33-
<md-progress-circular md-diameter="96"></md-progress-circular>
34-
</div>
29+
<div ng-show="vm.activated" layout="row" layout-sm="column" layout-align="space-around">
30+
<md-progress-circular class="md-hue-2" md-diameter="20px"></md-progress-circular>
31+
<md-progress-circular class="md-accent" md-diameter="40"></md-progress-circular>
32+
<md-progress-circular class="md-accent md-hue-1" md-diameter="60"></md-progress-circular>
33+
<md-progress-circular class="md-warn md-hue-3" md-diameter="70"></md-progress-circular>
34+
<md-progress-circular md-diameter="96"></md-progress-circular>
35+
</div>
36+
</md-content>
3537

36-
<h4>Dark theme</h4>
38+
<md-content md-theme="docs-dark" layout-padding>
39+
<h4>Dark theme</h4>
3740

38-
<p>
39-
This is an example of the <b>&lt;md-progress-circular&gt;</b> component, with a dark theme.
40-
</p>
41+
<p>
42+
This is an example of the <b>&lt;md-progress-circular&gt;</b> component, with a dark theme.
43+
</p>
4144

42-
<div ng-show="vm.activated" md-theme="docs-dark" layout="row" layout-sm="column" layout-align="space-around">
43-
<md-progress-circular class="md-hue-2" md-diameter="20px"></md-progress-circular>
44-
<md-progress-circular class="md-accent" md-diameter="40"></md-progress-circular>
45-
<md-progress-circular class="md-accent md-hue-1" md-diameter="60"></md-progress-circular>
46-
<md-progress-circular class="md-warn md-hue-3" md-diameter="70"></md-progress-circular>
47-
<md-progress-circular md-diameter="96"></md-progress-circular>
48-
</div>
45+
<div ng-show="vm.activated" layout="row" layout-sm="column" layout-align="space-around">
46+
<md-progress-circular class="md-hue-2" md-diameter="20px"></md-progress-circular>
47+
<md-progress-circular class="md-accent" md-diameter="40"></md-progress-circular>
48+
<md-progress-circular class="md-accent md-hue-1" md-diameter="60"></md-progress-circular>
49+
<md-progress-circular class="md-warn md-hue-3" md-diameter="70"></md-progress-circular>
50+
<md-progress-circular md-diameter="96"></md-progress-circular>
51+
</div>
52+
</md-content>
4953

50-
<hr ng-class="{'visible' : vm.activated}">
51-
52-
<div id="loaders" layout="row" layout-align="start center">
54+
<md-content layout="row" layout-align="start center" layout-padding>
5355
<p>Progress Circular Indicators: </p>
5456

5557
<h5>Off</h5>
@@ -58,6 +60,6 @@ <h5>Off</h5>
5860
aria-label="Toggle Progress Circular Indicators">
5961
<h5>On</h5>
6062
</md-switch>
61-
</div>
63+
</md-content>
6264

6365
</div>

0 commit comments

Comments
 (0)