Add keyboard interactions and focus trapping to Navigation

This commit is contained in:
2018-04-29 10:30:32 +01:00
parent 387d6a770e
commit db70a6cb06
6 changed files with 147 additions and 45 deletions

View File

@@ -42,6 +42,14 @@
margin-right: 62px;
}
.Nav-titleLink,
.Nav-titleLink:active,
.Nav-titleLink:focus,
.Nav-titleLink:hover,
.Nav-titleLink:visited {
color: #fff;
}
.Nav-close {
background-color: transparent;
border: none;
@@ -52,9 +60,17 @@
position: absolute;
right: 15px;
top: 15px;
transition: filter var(--Nav-transitionDuration) ease-out;
width: 32px;
}
.Nav-close:active,
.Nav-close:focus,
.Nav-close:hover {
filter: drop-shadow(0 0 2px #fff);
outline: 0;
}
.Nav-closeBar {
background-color: #fff;
border-radius: 2px;