aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/instant/src/components/progress_bar.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/instant/src/components/progress_bar.tsx b/packages/instant/src/components/progress_bar.tsx
index b89c56ed5..5b5968703 100644
--- a/packages/instant/src/components/progress_bar.tsx
+++ b/packages/instant/src/components/progress_bar.tsx
@@ -3,15 +3,19 @@ import * as React from 'react';
import { ColorOption } from '../style/theme';
import { Container } from './ui/container';
-import { Text } from './ui/text';
export interface ProgressBarProps {
percentageDone: number;
}
export const ProgressBar: React.StatelessComponent<ProgressBarProps> = props => (
- <Container width="100%" backgroundColor={ColorOption.white}>
- <Container width={`${props.percentageDone}%`} backgroundColor={ColorOption.black}>
- <Text fontColor={ColorOption.white}>{props.percentageDone}%</Text>
+ <Container padding="20px 20px 0px 20px" width="100%">
+ <Container width="100%" backgroundColor={ColorOption.lightGrey} borderRadius="6px">
+ <Container
+ width={`${props.percentageDone}%`}
+ backgroundColor={ColorOption.primaryColor}
+ borderRadius="6px"
+ height="10px"
+ />
</Container>
</Container>
);