Skip to content

Commit 0137868

Browse files
navinkarkeraAgrendalath
authored andcommitted
fix: breadcrumb navigation css
1 parent 1c025f0 commit 0137868

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/courseware/course/CourseBreadcrumbs.jsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ const CourseBreadcrumb = ({
2020
<li className="col-auto p-0 mx-2 text-primary-500 text-truncate text-nowrap" role="presentation" aria-hidden>/</li>
2121
)}
2222

23-
<li style={{
24-
overflow: 'hidden',
25-
textOverflow: 'ellipsis',
26-
whiteSpace: 'nowrap',
27-
}}
28-
>
23+
<li className="reactive-crumbs">
2924
{ getConfig().ENABLE_JUMPNAV !== 'true' || content.length < 2 || !isStaff
3025
? (
3126
<Link

src/index.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,18 @@
356356
}
357357
}
358358

359+
.reactive-crumbs {
360+
overflow: hidden;
361+
text-overflow: ellipsis;
362+
white-space: nowrap;
363+
&:hover,
364+
&:focus,
365+
&:focus-within,
366+
&:active {
367+
overflow: visible;
368+
}
369+
}
370+
359371
.raised-card {
360372
border: 0 !important;
361373
box-shadow: 0 .0625rem .125rem rgba(0, 0, 0, .2) !important;

0 commit comments

Comments
 (0)