Skip to content

Commit 16d71d1

Browse files
anweshasaha9niteshsyngenta11
authored andcommitted
DGC-187: Fixed keyboard accessibility issue for sub-menus. (#168)
1 parent 6a9faa9 commit 16d71d1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • docroot/themes/custom/govcon/components/molecules/menu

docroot/themes/custom/govcon/components/molecules/menu/menu.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,20 @@ nav {
6464
}
6565

6666
ul.dropdown-menu {
67-
display: block;
67+
visibility: visible;
68+
}
69+
}
70+
71+
&:focus-within {
72+
ul.dropdown-menu {
73+
visibility: visible;
6874
}
6975
}
7076
}
7177
}
7278

7379
ul.dropdown-menu {
74-
display: none;
80+
visibility: hidden;
7581
position: absolute;
7682
top: 82px;
7783

0 commit comments

Comments
 (0)