Skip to content

Commit 9d22745

Browse files
committed
enh(breadcrumbs): removed unnecessary aria label
Signed-off-by: Eduardo Morales <[email protected]>
1 parent aae9960 commit 9d22745

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

apps/files/src/components/BreadCrumbs.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
2-
<NcBreadcrumbs data-cy-files-content-breadcrumbs>
2+
<NcBreadcrumbs
3+
data-cy-files-content-breadcrumbs
4+
:aria-label="t('files', 'Current directory path')">
35
<!-- Current path sections -->
46
<NcBreadcrumb v-for="(section, index) in sections"
57
:key="section.dir"
6-
:aria-label="ariaLabel(section)"
7-
:title="ariaLabel(section)"
88
v-bind="section"
99
dir="auto"
1010
:to="section.to"
1111
@click.native="onClick(section.to)">
1212
<template v-if="index === 0" #icon>
13-
<Home :size="20" />
13+
<Home :size="20" :title="titleForSection(section)" />
1414
</template>
1515
</NcBreadcrumb>
1616

@@ -106,7 +106,7 @@ export default Vue.extend({
106106
}
107107
},
108108
109-
ariaLabel(section) {
109+
titleForSection(section) {
110110
if (section?.to?.query?.dir === this.$route.query.dir) {
111111
return t('files', 'Reload current directory')
112112
}

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)