Skip to content

Commit 89b7437

Browse files
authored
Merge pull request #3618 from nextcloud/fix/a11y-non-interactive-avatar
2 parents 5649184 + d0dba08 commit 89b7437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/NcAvatar/NcAvatar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,12 @@ export default {
384384
},
385385
computed: {
386386
avatarAriaLabel() {
387+
if (!this.hasMenu) {
388+
return
389+
}
387390
if (this.ariaLabel !== null) {
388391
return this.ariaLabel
389392
}
390-
391393
if (this.hasStatus && this.showUserStatus && this.showUserStatusCompact) {
392394
return t('Avatar of {displayName}, {status}', { displayName: this.displayName ?? this.user, status: this.userStatus.status })
393395
}

0 commit comments

Comments
 (0)