summaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorJulia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com>2023-03-24 12:34:21 +0100
committerGitHub <noreply@github.com>2023-03-24 12:34:21 +0100
commita854274875dd52223dfd0a0b6f78e1bb306904b6 (patch)
tree8335291597f4e306ea8f19f10ffe0c8919b7c2ab /apps/dashboard
parent161e6acd8ebf1d2744ddef1bc1d30a042a416c11 (diff)
parent9df19366c9cf8f8a0121c622d4654951967efa1a (diff)
downloadnextcloud-server-a854274875dd52223dfd0a0b6f78e1bb306904b6.tar.gz
nextcloud-server-a854274875dd52223dfd0a0b6f78e1bb306904b6.zip
Merge pull request #37338 from nextcloud/fix/36908-set_aria-hidden-for-default-shipped_widgets-icons-stable26
[stable26] Fix/36908 set aria hidden for default shipped widgets icons
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/src/DashboardApp.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue
index 607e677fa7f..8d4785f1b69 100644
--- a/apps/dashboard/src/DashboardApp.vue
+++ b/apps/dashboard/src/DashboardApp.vue
@@ -17,9 +17,13 @@
<div v-for="panelId in layout" :key="panels[panelId].id" class="panel">
<div class="panel--header">
<h2>
- <div :class="panels[panelId].iconClass" role="img" />
+ <div aria-labelledby="panel--header--icon--description"
+ aria-hidden="true"
+ :class="panels[panelId].iconClass"
+ role="img" />
{{ panels[panelId].title }}
</h2>
+ <span id="panel--header--icon--description" class="hidden-visually"> {{ t('dashboard', '"{title} icon"', { title: panels[panelId].title }) }} </span>
</div>
<div class="panel--content" :class="{ loading: !panels[panelId].mounted }">
<div :ref="panels[panelId].id" :data-id="panels[panelId].id" />