Skip to content

Commit

Permalink
Adding overlay over course rows (#5403)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Oct 7, 2024
1 parent 51e86a8 commit 0240b5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/js/components/dashboard/CourseListCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ export default class CourseListCard extends React.Component {
{showStaffView ? `Courses - ${program.title}` : "Required Courses"}
</h2>
{showStaffView ? null : this.renderGradesOutOfDateMessage()}
{courseRows}
<div className="parent-overlay">
<div className="overlay" />
{courseRows}
</div>
</CardContent>
</Card>
)
Expand Down
16 changes: 16 additions & 0 deletions static/scss/dashboard/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@
font-weight: 600;
}

.parent-overlay {
position: relative;
height: 100%;
width: 100%;
}

.overlay {
position: absolute;
height: 100%;
width: 100%;
display: block;
z-index: 999;
background-color: black;
opacity: 0.2;
}

.dashboard {

h2 {
Expand Down

0 comments on commit 0240b5e

Please sign in to comment.