#6072·ngx-admin

Accessibility: icon-only controls in the header/dashboard have no accessible name

Author: DuncanFaulknerCreated Sep 23, 2026Updated Sep 23, 2026

Hi team — I was going through the material-light dashboard demo (https://demo.akveo.com/ngx-admin/pages/dashboard?theme=material-light) and noticed a few small accessibility gaps in the app shell. Since so many projects start from ngx-admin, fixing these in the template benefits a lot of downstream apps. Happy to open a PR if that's welcome.

1. Icon-only controls with no accessible name (WCAG 4.1.2 / 2.5.3) These render as icon-only and expose no text, aria-label, or title, so screen readers announce them as just "button"/"link":

  • Sidebar toggle — <a href="#" class="sidebar-toggle"> (icon only)
  • Header search — <button class="start-search"> (search icon only)
  • Settings toggle — <button class="toggle-settings"> (gear icon only)

Adding an aria-label (e.g. "Toggle menu", "Search", "Toggle settings") to each would resolve it. (Worth noting different axe builds flagged the buttons inconsistently — but they're genuinely unlabelled either way; a manual check for text/aria-label/title confirmed it.)

2. <html> has no lang attribute (WCAG 3.1.1) The document renders as <html dir="ltr"> with no lang. Adding lang="en" to src/index.html lets assistive tech pick the right pronunciation rules.

3. No <main> landmark (WCAG 1.3.1 / landmark best practice) There's no top-level <main> around the routed page content, so there's no primary landmark / "skip to main content" target. Wrapping the router-outlet content in <main> would fix it.

(Scoped to the template shell — I excluded the demo's GitHub-star iframe and footer social links, which aren't really part of what people fork.) Thanks for ngx-admin!