Skip to content

Commit 0240b5e

Browse files
authored
Adding overlay over course rows (#5403)
1 parent 51e86a8 commit 0240b5e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

static/js/components/dashboard/CourseListCard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ export default class CourseListCard extends React.Component {
126126
{showStaffView ? `Courses - ${program.title}` : "Required Courses"}
127127
</h2>
128128
{showStaffView ? null : this.renderGradesOutOfDateMessage()}
129-
{courseRows}
129+
<div className="parent-overlay">
130+
<div className="overlay" />
131+
{courseRows}
132+
</div>
130133
</CardContent>
131134
</Card>
132135
)

static/scss/dashboard/dashboard.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@
2020
font-weight: 600;
2121
}
2222

23+
.parent-overlay {
24+
position: relative;
25+
height: 100%;
26+
width: 100%;
27+
}
28+
29+
.overlay {
30+
position: absolute;
31+
height: 100%;
32+
width: 100%;
33+
display: block;
34+
z-index: 999;
35+
background-color: black;
36+
opacity: 0.2;
37+
}
38+
2339
.dashboard {
2440

2541
h2 {

0 commit comments

Comments
 (0)