Skip to content

Commit

Permalink
refactor: add styles in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Dec 29, 2023
1 parent 6c15716 commit fd0b046
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
11 changes: 6 additions & 5 deletions src/course-home/outline-tab/Section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ const Section = ({
/>
)}
</div>
<div className="ml-3 p-0 font-weight-bold text-dark-500">
<div className="col-7 ml-3 p-0 font-weight-bold text-dark-500">
<span className="align-middle col-6">{title}</span>
<span className="sr-only">
, {intl.formatMessage(complete ? messages.completedSection : messages.incompleteSection)}
</span>
</div>
<div className="col-10 col-sm-8 d-flex align-items-end justify-content-end">
<div className="row">
{hideFromTOC && (
<span className="small d-flex align-content-end">
<Icon className="mr-2" src={DisabledVisible} />Hidden in Course Outline, accessible via link
</span>
<span className="small d-flex align-content-end">

Check warning on line 75 in src/course-home/outline-tab/Section.jsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L75 was not covered by tests
<Icon className="mr-2" src={DisabledVisible} />
Hidden in Course Outline, accessible via link
</span>
)}
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/course-home/outline-tab/SequenceLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,20 @@ const SequenceLink = ({
/>
)}
</div>
<div className="col-auto p-0 ml-3 text-break">
<div className="col-10 p-0 ml-3 text-break">
<span className="align-middle">{displayTitle}</span>
<span className="sr-only">
, {intl.formatMessage(complete ? messages.completedAssignment : messages.incompleteAssignment)}
</span>
<EffortEstimate className="ml-3 align-middle" block={sequence} />
</div>
<div className="col-9">
{hideFromTOC && (
<span className="small d-flex">
<Icon className="mr-2" src={DisabledVisible} />Subsections are not navigable beetwen each other, they can only be accessed through their link.
</span>
)}
</div>
</div>
<div className="row w-100 my-2 mx-4 pl-3">
{hideFromTOC && (
<span className="small d-flex">

Check warning on line 122 in src/course-home/outline-tab/SequenceLink.jsx

View check run for this annotation

Codecov / codecov/patch

src/course-home/outline-tab/SequenceLink.jsx#L122

Added line #L122 was not covered by tests
<Icon className="mr-2" src={DisabledVisible} />Subsections are not navigable beetwen each other, they can only be accessed through their link.
</span>
)}
</div>
<div className="row w-100 m-0 ml-3 pl-3">
<small className="text-body pl-2">
Expand Down

0 comments on commit fd0b046

Please sign in to comment.