Skip to content

Commit

Permalink
fix(ProgressBar): fix bug with progress bar colour being overridden b…
Browse files Browse the repository at this point in the history
…y mui style (#163)
  • Loading branch information
cogwirrel authored Apr 13, 2021
1 parent 0bfac31 commit f99a50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/ProgressBar/ProgressBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Stack from 'aws-northstar/layouts/Stack';

<Container headingVariant='h4' title="Circular progress bar">
<ProgressBar label="Circular progress bar completed" variant={'circular'} value={100} displayValue={true} />
<ProgressBar label="Circular progress bar empty" variant={'circular'} value={0} displayValue={true} />
</Container>
</Stack>
```
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProgressBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ const useStyles = makeStyles((theme: Theme) => ({
marginTop: '8px',
},
circularColorPrimary: {
color: theme.palette.info.dark,
color: `${theme.palette.info.dark} !important`,
position: 'absolute',
left: 0,
},
circularColorBottom: {
color: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
color: `${theme.palette.grey[theme.palette.type === 'light' ? 200 : 700]} !important`,
},
barColorPrimary: {
backgroundColor: theme.palette.info.dark,
Expand Down

0 comments on commit f99a50f

Please sign in to comment.