aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2023-10-04 13:30:55 +0200
committerGrigorii K. Shartsev <me@shgk.me>2023-10-04 16:19:38 +0200
commitc4684c8ec52cf5eba3f7d3393af226b7b4f4a5d2 (patch)
treede6c2b7343ea33871eb45d981dc1fe5f4e481c68 /apps
parent529bce24b44f7c10673e619fe062baeea5b5c3d5 (diff)
downloadnextcloud-server-c4684c8ec52cf5eba3f7d3393af226b7b4f4a5d2.tar.gz
nextcloud-server-c4684c8ec52cf5eba3f7d3393af226b7b4f4a5d2.zip
fix(dashboard): remove duplicated IDs
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps')
-rw-r--r--apps/dashboard/src/DashboardApp.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue
index 7a7b56da266..9d099c263d5 100644
--- a/apps/dashboard/src/DashboardApp.vue
+++ b/apps/dashboard/src/DashboardApp.vue
@@ -20,13 +20,13 @@
class="panel">
<div class="panel--header">
<h2>
- <div aria-labelledby="panel--header--icon--description"
+ <div :aria-labelledby="`panel-${panels[panelId].id}--header--icon--description`"
aria-hidden="true"
:class="apiWidgets[panels[panelId].id].icon_class"
role="img" />
{{ apiWidgets[panels[panelId].id].title }}
</h2>
- <span id="panel--header--icon--description" class="hidden-visually">
+ <span :id="`panel-${panels[panelId].id}--header--icon--description`" class="hidden-visually">
{{ t('dashboard', '"{title} icon"', { title: apiWidgets[panels[panelId].id].title }) }}
</span>
</div>
@@ -39,13 +39,13 @@
<div v-else :key="panels[panelId].id" class="panel">
<div class="panel--header">
<h2>
- <div aria-labelledby="panel--header--icon--description"
+ <div :aria-labelledby="`panel-${panels[panelId].id}--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>
+ <span :id="`panel-${panels[panelId].id}--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" />