Skip to content

Commit

Permalink
Add tabindex to navigation menu generation, CSS to show rest of menu …
Browse files Browse the repository at this point in the history
…if tabbed to (#1226)
  • Loading branch information
alexgao1 authored May 6, 2024
1 parent 9cb0020 commit f854580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nunaliit2-js/src/main/js/nunaliit2/css/basic/n2.widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
/*visibility: inherit; fixes IE7 'sticky bug' */
text-decoration: underline;
}
.nunaliit_header-nav li:hover>ul {
.nunaliit_header-nav li:hover>ul,
.nunaliit_header-nav li:focus-within > ul {
display: block;
z-index: 99;
}
Expand Down
1 change: 1 addition & 0 deletions nunaliit2-js/src/main/js/nunaliit2/n2.couchNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ var NavigationDisplay = $n2.Class({

var $li = $('<li>')
.addClass('n2nav_setChildModuleCurrent')
.attr('tabindex', 0)
.appendTo($ul);

if( item.key ){
Expand Down

0 comments on commit f854580

Please sign in to comment.