Accessibility: icon-only controls across several components have no accessible name (WCAG 4.1.2)
Hi team — while auditing accessibility across some Angular projects I looked at Nebular and found a recurring gap worth flagging: icon-only interactive controls that expose no accessible name, so screen readers announce them as just "button" or "link" (WCAG 4.1.2 Name, Role, Value; 2.5.3 Label in Name).
It looks systemic rather than one-off — there are only two aria-labels in the whole src/framework/theme/components tree. Here are the icon-only controls I could confirm have no text, aria-label, or title (I deliberately excluded controls that already carry a text or [title] label — e.g. menu items, nb-action with title, and tabs):
nb-window—window/window.component.ts: the minimize, maximize, maximize/fullscreen and close buttons (each is<button nbButton ghost>with only an<nb-icon>).nb-search—search/search.component.ts: the open-search button (.start-search) and the close button (.close-button).nb-calendar/ calendar-kit —calendar-kit/components/calendar-navigation/calendar-pageable-navigation.component.ts: the previous-/next-month navigation arrows (.prev-month/.next-month).nb-flip-card/nb-reveal-card—card/flip-card/flip-card.component.ts,card/reveal-card/reveal-card.component.ts: the flip / reveal toggle buttons.nb-chat—chat/chat-message-file.component.ts: file-attachment links rendered as icon-only<a>.
Suggested fix: give each control a sensible default aria-label (e.g. "Close", "Minimize", "Previous month", "Search"), ideally exposed as a configurable @Input so apps can localise it. Fixing these in the library resolves them for every downstream app — I first hit the search-button one via an app built on Nebular.
Happy to open a PR if this is welcome — just let me know whether you'd prefer default labels, configurable inputs, or both.
Thanks for Nebular!
Source: akveo/nebular