Skip to content

Commit

Permalink
[docs] Customize LinearProgress color (mui#12883)
Browse files Browse the repository at this point in the history
* New colored linear progress has beed added to demo page

* yarn prettier
  • Loading branch information
mbrn authored and marcelpanse committed Oct 2, 2018
1 parent d6e0f80 commit 2b329ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/src/pages/demos/progress/LinearIndeterminate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ const styles = {
root: {
flexGrow: 1,
},
colorPrimary: {
backgroundColor: '#B2DFDB',
},
barColorPrimary: {
backgroundColor: '#00695C',
},
};

function LinearIndeterminate(props) {
Expand All @@ -16,6 +22,10 @@ function LinearIndeterminate(props) {
<LinearProgress />
<br />
<LinearProgress color="secondary" />
<br />
<LinearProgress
classes={{ colorPrimary: classes.colorPrimary, barColorPrimary: classes.barColorPrimary }}
/>
</div>
);
}
Expand Down

0 comments on commit 2b329ea

Please sign in to comment.