Skip to content

Commit c54fe0e

Browse files
feat: refactor after rebase
1 parent a6306bd commit c54fe0e

File tree

3 files changed

+4
-141
lines changed

3 files changed

+4
-141
lines changed

src/course-home/outline-tab/Section.jsx

-139
This file was deleted.

src/course-home/outline-tab/section-outline/SectionTitle.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const SectionTitle: React.FC<Props> = ({ complete, hideFromTOC, title }) => {
3535
)}
3636
</div>
3737
<div className="col-7 ml-3 p-0 font-weight-bold text-dark-500">
38-
<span className="align-middle col-6">{title}</span>
38+
<h2 className="course-outline-tab-section-title text-dark-500 mb-0">
39+
<span className="align-middle col-6">{title}</span>
40+
</h2>
3941
<span className="sr-only">
4042
, {intl.formatMessage(complete ? messages.completedSection : messages.incompleteSection)}
4143
</span>

src/plugin-slots/CourseHomeSectionOutlineSlot/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const CourseHomeSectionOutlineSlot: React.FC<Props> = ({
1515
id="course_home_section_outline_slot"
1616
pluginProps={{ expandAll, sectionIds, sections }}
1717
>
18-
<ol id="courseHome-outline" className="list-unstyled">
18+
<ol id="courseHome-outline" className="list-unstyled" role="presentation">
1919
{sectionIds.map((sectionId) => (
2020
<Section
2121
key={sectionId}

0 commit comments

Comments
 (0)