Skip to content

Commit

Permalink
fix(KUI-1434): made the local navigation items expandable
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhossein-haerian committed Sep 5, 2024
1 parent ad10bae commit 2e53c7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions public/css/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
}
}
}
.kth-local-navigation--mobile {
padding: 0;
}
label:has(+ .form-group),
label:has(+ input) {
@include typography.font-heading-xs;
Expand Down
8 changes: 5 additions & 3 deletions public/js/app/components/SideMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ const SideMenu = ({ labels, courseCode, language, aboutCourseMemo, courseMemoIte
<a href={aboutCourseLink(courseCode, language)}> {labels.beforeChoosingCourse}</a>
</li>

<li className="kth-local-navigation__submenu">
<h3>{labels.courseMemo}</h3>
<ul>
<li>
<a href={aboutCourseMemoLink(courseCode)} className={'expandable expanded'}>
{labels.courseMemo}
</a>
<ul className="kth-local-navigation__submenu">
<li>
<a href={aboutCourseMemoLink(courseCode)} {...(aboutCourseMemo ? { 'aria-current': 'page' } : {})}>
{labels.aboutCourseMemos}
Expand Down

0 comments on commit 2e53c7c

Please sign in to comment.