Skip to content

fix: add missing accessibility labels in header and storage quota#490

Merged
memurats merged 1 commit into
stable32from
nmc/5884-add-missing-accessibility-labels
Jul 10, 2026
Merged

fix: add missing accessibility labels in header and storage quota#490
memurats merged 1 commit into
stable32from
nmc/5884-add-missing-accessibility-labels

Conversation

@suet-kei-chan

@suet-kei-chan suet-kei-chan commented Jul 9, 2026

Copy link
Copy Markdown

Several interactive elements in the header and storage quota area were missing accessible labels, making them ambiguous or uninformative for screen reader users.

Changes:
src/components/UserMenu.vue

Replaced invalid "div" wrapper with "template" inside "ul" (a "div" directly inside "ul" is invalid HTML and can confuse screen readers)
Added aria-label on external links (Hilfe & FAQ, Kundencenter) that open in a new tab, appending ", opens in new tab" so screen readers announce the context
src/components/StorageQuota.vue

Added :aria-label="t('nmctheme', 'Expand storage, opens in new tab')" on the storage upgrade link to inform screen readers it opens a new tab
Added aria-hidden="true" on NcIconSvgWrapper to prevent the decorative cloud icon from being announced separately
l10n/en.json, l10n/en_GB.json, l10n/de.json, l10n/de_DE.json

Added standalone translation key "opens in new tab" (used by UserMenu for external links)
Added translation key "Expand storage, opens in new tab" (used by StorageQuota)

Not changed (already accessible):
Search, Settings menu, Notifications buttons — already have aria-label from Nextcloud core
App navigation menu — already fully labelled
Files list Add button and 3-dot action button — already have accessible names from Nextcloud core
Type and Modified filter buttons — already have visible text as accessible names

AC1 - Header (Settings menu):
- UserMenu.vue: replace invalid <div> wrapper with <template> inside <ul>
- UserMenu.vue: add aria-label with "opens in new tab" hint on external
  links (Hilfe & FAQ, Kundencenter) so screen readers announce the context

AC4 - Storage indicator:
- StorageQuota.vue: add aria-label="Expand storage, opens in new tab" on
  the storage upgrade link to inform screen readers it opens a new tab
- StorageQuota.vue: add aria-hidden="true" on NcIconSvgWrapper to prevent
  the decorative icon from being announced by screen readers

Translations:
- Add "opens in new tab" key to en, en_GB, de, de_DE l10n files
- Add "Expand storage, opens in new tab" key to all four l10n files
@suet-kei-chan suet-kei-chan self-assigned this Jul 9, 2026
@memurats memurats merged commit 2babc01 into stable32 Jul 10, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants