Skip to content

Commit 402f0d3

Browse files
committed
fix(web-pkg): use img role for resource icon when it has label:
1 parent ed9109d commit 402f0d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/web-pkg/src/components/FilesList/ResourceListItem.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:aria-label="tooltipLabelIcon"
2222
:aria-hidden="tooltipLabelIcon === null"
2323
:resource="resource"
24+
:role="tooltipLabelIcon ? 'img' : 'presentation'"
2425
/>
2526
</span>
2627
<div class="oc-resource-details oc-text-overflow" :class="{ 'oc-pl-s': isIconDisplayed }">

0 commit comments

Comments
 (0)