Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/components/CourseProgress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ export default function CourseProgress() {
<div className={styles.courseTitle}>{course.title}</div>
<div className={styles.progressBarContainer}>
<div
role="progressbar"
aria-valuenow={Math.round(courseProgress)}
aria-valuemin="0"
aria-valuemax="100"
aria-label={`Progress: ${Math.round(courseProgress)}%`}
className={styles.progressBar}
style={{ width: `${courseProgress}%` }}
/>
Expand Down Expand Up @@ -245,6 +250,11 @@ export default function CourseProgress() {
</div>
<div className={styles.progressBarContainer}>
<div
role="progressbar"
aria-valuenow={Math.round(progress)}
aria-valuemin="0"
aria-valuemax="100"
aria-label={`Total Progress: ${Math.round(progress)}%`}
className={clsx(styles.progressBar, styles.mainProgressBar)}
style={{ width: `${progress}%` }}
/>
Expand Down Expand Up @@ -273,6 +283,11 @@ export default function CourseProgress() {
</div>
<div className={styles.progressBarFull}>
<div
role="progressbar"
aria-valuenow={Math.round(progress)}
aria-valuemin="0"
aria-valuemax="100"
aria-label={`Overall Course Progress: ${Math.round(progress)}%`}
className={styles.progressBarFill}
style={{ width: `${progress}%` }}
/>
Expand Down
Loading