Skip to content

Commit fac17a9

Browse files
committed
Add status/legend headers
1 parent 7e5c825 commit fac17a9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

apps/src/templates/sectionProgress/SummaryViewLegend.jsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const styles = {
88
header: {
99
fontWeight: 'bold',
1010
color: color.charcoal,
11+
textAlign: 'center',
1112
},
1213
th: {
1314
backgroundColor: color.lightest_gray,
@@ -34,12 +35,22 @@ export default class SummaryViewLegend extends Component {
3435

3536
render() {
3637
const {showCSFProgressBox} = this.props;
38+
const headerColSpan = showCSFProgressBox ? 2 : 3;
3739

3840
return (
39-
<div style={{marginTop: 30}}>
40-
<h4 style={styles.header}>{i18n.lessonStatus()}</h4>
41+
<div style={{marginTop: 60}}>
4142
<table>
4243
<thead>
44+
<tr>
45+
<td colSpan={headerColSpan}>
46+
<h3 style={styles.header}>{i18n.lessonStatus()}</h3>
47+
</td>
48+
{showCSFProgressBox &&
49+
<td colSpan={2}>
50+
<h3 style={styles.header}>{i18n.completionStatus()}</h3>
51+
</td>
52+
}
53+
</tr>
4354
<tr>
4455
<th style={styles.th}>{i18n.notStarted()}</th>
4556
<th style={styles.th}>{i18n.inProgress()}</th>

0 commit comments

Comments
 (0)