Skip to content

Commit 21750ff

Browse files
author
Elliott Marquez
authored
Merge pull request #1636 from material-components/demo/circ
demo(circular-progress): add four color variant
2 parents 678b30e + 317724c commit 21750ff

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

demos/circular-progress/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
.demo-progress-bar {
3737
--mdc-theme-primary: red;
3838
}
39+
.demo-progress-bar-four-color {
40+
--mdc-circular-progress-bar-color-1: #2196f3;
41+
--mdc-circular-progress-bar-color-2: #e91e63;
42+
--mdc-circular-progress-bar-color-3: #ffc107;
43+
--mdc-circular-progress-bar-color-4: #03dac5;
44+
}
3945
</style>
4046
</head>
4147
<body class="unresolved">
@@ -50,6 +56,8 @@ <h3>circular-progress: indeterminate</h3>
5056
<mwc-circular-progress indeterminate></mwc-circular-progress>
5157
<h3>circular-progress: custom color</h3>
5258
<mwc-circular-progress indeterminate class="demo-progress-bar"></mwc-circular-progress>
59+
<h3>circular-progress: custom four color</h3>
60+
<mwc-circular-progress-four-color indeterminate class="demo-progress-bar-four-color"></mwc-circular-progress>
5361
</main>
5462
<script nomodule src="index.es5.js"></script>
5563
</body>

demos/circular-progress/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import '@material/mwc-circular-progress';
2+
import '@material/mwc-circular-progress-four-color';
23
import '@material/mwc-button';
34

45
import '../shared/demo-header';

0 commit comments

Comments
 (0)