-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new ProgressBar component (#336)
* feat(#333): Create new ProgressBar component in components/design_system/progressBar according to specifications in the official design system. Delete old ProgressBar component. Add color palette to MUI theme, with the basic colors from the design system. * feat(333): add global css color variable names in comments after the palette colors in theme.
- Loading branch information
1 parent
2380aaf
commit fb5e908
Showing
5 changed files
with
44 additions
and
33 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
src/components/design_system/progressBar/ProgressBar.module.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
/** DESIGN SYSTEM COMPONENT PLACEHOLDER | ||
* 1) Make a local branch for organizing your component (e.g. "design-systems-button") | ||
* 2) Replace this file and the corresponding css file(s) with your component file(s), cleaning up any duplicate files that are outside of the design components folder. | ||
* 3) Search and find all use cases for your component (likely linting will tell you where they are) and update the import paths | ||
* 4) Check code for errors and delete this comment | ||
* 5) Push code to branch and do a PR referencing the specific issue task you took for issue # 255. | ||
* NOTE: If you want a css.d.ts file to be generated or updated to help with any type issues, you can run `npm run type-css` | ||
* */ | ||
export {}; | ||
import LinearProgress from "@mui/material/LinearProgress"; | ||
|
||
export default function ProgressBar({ value }: { value: number }) { | ||
return ( | ||
<div> | ||
<LinearProgress | ||
variant="determinate" | ||
color="primary" | ||
value={value} | ||
sx={{ | ||
backgroundColor: "primary.light", | ||
height: "4px", | ||
width: "280px", | ||
}} | ||
/> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters