diff --git a/changelog.d/fixed-16654-navigation-label.md b/changelog.d/fixed-16654-navigation-label.md new file mode 100644 index 0000000000..d32f536cd1 --- /dev/null +++ b/changelog.d/fixed-16654-navigation-label.md @@ -0,0 +1 @@ +- Label the narrow dashboard's navigation drawer button so operators can find sidebar sections and version details without guessing what the menu icon does (#16654). diff --git a/src/pkg/dashboard/static-src/html/topbar.html b/src/pkg/dashboard/static-src/html/topbar.html index 4b943b428e..4ceaff3d88 100644 --- a/src/pkg/dashboard/static-src/html/topbar.html +++ b/src/pkg/dashboard/static-src/html/topbar.html @@ -1,9 +1,9 @@
- + title="Open navigation">Navigation
diff --git a/src/pkg/dashboard/static-src/js/chat.js b/src/pkg/dashboard/static-src/js/chat.js index 04a20dd0b7..2f94867431 100644 --- a/src/pkg/dashboard/static-src/js/chat.js +++ b/src/pkg/dashboard/static-src/js/chat.js @@ -531,7 +531,8 @@ sidebar.classList.toggle('open', open); backdrop.classList.toggle('open', open); toggle.setAttribute('aria-expanded', open ? 'true' : 'false'); - toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu'); + toggle.setAttribute('aria-label', open ? 'Close navigation' : 'Open navigation'); + toggle.title = open ? 'Close navigation' : 'Open navigation'; } function closeDrawer() { if (isOpen()) setOpen(false); } diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index a09cf5b522..eaedd82929 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -7963,9 +7963,9 @@

🐝 Getting Started
- + title="Open navigation">Navigation
@@ -66694,7 +66694,8 @@

${model.editIndex === null ? 'Add Event trigger' : 'Edit Event trigger'}