Skip to content

Commit

Permalink
#673 Making navigation keyboard accessible
Browse files Browse the repository at this point in the history
Signed-off-by: James Hunt <[email protected]>
  • Loading branch information
thetwopct authored and cjyabraham committed Mar 27, 2023
1 parent ae80492 commit 4f03520
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
&:visited {
color: $pure-white;
}
&:focus {
text-decoration: underline;
}
}

&__avatar {
Expand Down Expand Up @@ -72,6 +75,10 @@
&:hover {
background-color: $lf-grey-200;
}

&:focus {
text-decoration: underline;
}
}

// initially hide the only-authenticated parts in LFX SSO.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
// Desktop.
@media (min-width: 1024px) {
.header-global {
&__hamburger {
display: none;
}
&__logo-nav {
font-weight: 600;
font-size: 15px;
Expand Down Expand Up @@ -125,9 +128,9 @@
border-top: 5px solid $lf-grey-200;
}
}
&:hover > ul,
&:focus > ul,
&.focus > ul {
&.is-open > .sub-menu,
&:focus > .sub-menu,
&:focus-within > .sub-menu {
left: -1em;
top: 100%;
opacity: 1;
Expand Down

0 comments on commit 4f03520

Please sign in to comment.