aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-12-22 18:56:37 +0100
committerGitHub <noreply@github.com>2023-12-22 18:56:37 +0100
commit2e6c4eb08422494db334251814279ce867b59bad (patch)
treef66b4aa715c2eae14aa752f1674c6b9caa28c22e /apps
parentabcb1aa3709a4e8cc6c1f84af9264c0eeb3c07ec (diff)
parentee11df899312d90cad4176a3427cd8878badf6e6 (diff)
downloadnextcloud-server-2e6c4eb08422494db334251814279ce867b59bad.tar.gz
nextcloud-server-2e6c4eb08422494db334251814279ce867b59bad.zip
Merge pull request #42319 from nextcloud/fix/a11y/personal-info-headings
fix(settings): Use heading for Profile and Profile picture sections
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/PersonalInfo/AvatarSection.vue11
-rw-r--r--apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue2
2 files changed, 3 insertions, 10 deletions
diff --git a/apps/settings/src/components/PersonalInfo/AvatarSection.vue b/apps/settings/src/components/PersonalInfo/AvatarSection.vue
index 9c56fe277af..ed6cd2c423c 100644
--- a/apps/settings/src/components/PersonalInfo/AvatarSection.vue
+++ b/apps/settings/src/components/PersonalInfo/AvatarSection.vue
@@ -25,7 +25,7 @@
<h3 class="hidden-visually">
{{ t('settings', 'Your profile information') }}
</h3>
- <HeaderBar :input-id="avatarChangeSupported ? inputId : null"
+ <HeaderBar :is-heading="true"
:readable="avatar.readable"
:scope.sync="avatar.scope" />
@@ -63,8 +63,7 @@
</NcButton>
</div>
<span>{{ t('settings', 'The file must be a PNG or JPG') }}</span>
- <input :id="inputId"
- ref="input"
+ <input ref="input"
type="file"
:accept="validMimeTypes.join(',')"
@change="onChange">
@@ -163,12 +162,6 @@ export default {
}
},
- computed: {
- inputId() {
- return `account-property-${this.avatar.name}`
- },
- },
-
created() {
subscribe('settings:display-name:updated', this.handleDisplayNameUpdate)
},
diff --git a/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue b/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
index 2f1cc935f22..6b775092c6c 100644
--- a/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
+++ b/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
@@ -22,7 +22,7 @@
<template>
<section>
- <HeaderBar :readable="propertyReadable" />
+ <HeaderBar :is-heading="true" :readable="propertyReadable" />
<ProfileCheckbox :profile-enabled.sync="profileEnabled" />