Skip to content

Commit

Permalink
Merge pull request #37338 from nextcloud/fix/36908-set_aria-hidden-fo…
Browse files Browse the repository at this point in the history
…r-default-shipped_widgets-icons-stable26

[stable26] Fix/36908 set aria hidden for default shipped widgets icons
  • Loading branch information
JuliaKirschenheuter authored Mar 24, 2023
2 parents 161e6ac + 9df1936 commit a854274
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
4 changes: 2 additions & 2 deletions dist/dashboard-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dashboard-main.js.map

Large diffs are not rendered by default.

0 comments on commit a854274

Please sign in to comment.