Skip to content

Commit 431a898

Browse files
authored
Merge pull request #1462 from TechnologyEnhancedLearning/Develop/Fixes/TD-5762-Lefthand-navigation-implementation
TD-5762: Fixed issues on left hand navigation
2 parents 04c3451 + a41a24e commit 431a898

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

LearningHub.Nhs.WebUI/Styles/nhsuk/layout.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ body {
2828
justify-content: space-between;
2929
align-items: center;
3030
}
31+
3132
.nhs-progress-container {
3233
display: flex;
3334
height: 10px;
@@ -49,6 +50,7 @@ body {
4950
background-color: $nhsuk-green;
5051
transition: width .6s ease;
5152
}
53+
5254
.nhsuk-width-container.app-width-container {
5355
max-width: px2rem(1208);
5456
margin: 0 auto;
@@ -345,10 +347,17 @@ li.autosuggestion-option:last-of-type {
345347
font-size: 16px;
346348
padding: 10px 16px;
347349
border-radius: 25px;
348-
margin: 10px;
349350
cursor: pointer;
350351
}
351352

353+
.side-nav__close {
354+
margin: 10px;
355+
}
356+
357+
.menu-icon-text {
358+
text-decoration: underline;
359+
}
360+
352361
.menu-icon {
353362
display: inline-flex;
354363
justify-content: center;
@@ -406,7 +415,6 @@ li.autosuggestion-option:last-of-type {
406415
border-left: none !important;
407416
padding-left: 0 !important;
408417
}
409-
410418
/* large desktop */
411419
@media (min-width: px2rem(990)) {
412420

@@ -442,8 +450,6 @@ li.autosuggestion-option:last-of-type {
442450
border-right: none;
443451
}
444452
}
445-
446-
447453
/* small desktop */
448454
@media (max-width: px2rem(989)) {
449455

@@ -563,7 +569,6 @@ li.autosuggestion-option:last-of-type {
563569
top: 100%;
564570
}
565571
}
566-
567572
/* tablet */
568573
@media (max-width: px2rem(768)) {
569574

@@ -683,7 +688,6 @@ li.autosuggestion-option:last-of-type {
683688
background-color: #e8f0f7;
684689
}
685690
}
686-
687691
/* mobile */
688692
@media (max-width: px2rem(640)) {
689693

LearningHub.Nhs.WebUI/Views/Shared/Components/SideNav/Default.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
<input type="checkbox" id="navToggle" class="nav-toggle" hidden aria-hidden="true" />
88

99
<label for="navToggle" class="side-nav__toggle" aria-controls="sideNav">
10-
<span class="menu-icon">»</span> Open page menu
10+
<span class="menu-icon">»</span>
11+
<span class="menu-icon-text">Open page menu</span>
1112
</label>
1213

1314
<div id="sideNav" class="side-nav__container">
1415
<label for="navToggle" class="side-nav__close">
15-
Close page menu <span class="menu-icon">«</span>
16+
<span class="menu-icon-text"> Close page menu</span> <span class="menu-icon">«</span>
1617
</label>
1718

1819
<nav class="side-nav" aria-label="@(group.GroupTitle) navigation">

0 commit comments

Comments
 (0)