Skip to content

Commit e4bcd2b

Browse files
author
Erwin Dondorp
committed
no keyboard indicator for inactive, but possibly visible, menu items, closes #710
1 parent e3771f0 commit e4bcd2b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

saltgui/static/scripts/Router.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,15 @@ export class Router {
273273
for (let nr = 1; nr <= 2; nr++) {
274274
const item = document.getElementById("button-" + pPage.path + nr);
275275
item.style.color = !visible && hasVisibleChild ? "lightgray" : "black";
276+
if (!visible) {
277+
// hide the shortcut indicator
278+
item.classList.remove("menu-item-first-letter");
279+
}
276280
if (visible || hasVisibleChild) {
281+
// show the menu item
277282
item.classList.remove("menu-item-hidden");
278283
} else {
284+
// hide the menu item
279285
item.classList.add("menu-item-hidden");
280286
}
281287
}

0 commit comments

Comments
 (0)