Merge pull request #42495 from nextcloud/stable28-fix/a11y/personal-info-headings

This commit is contained in:
John Molakvoæ 2023-12-28 13:04:14 +01:00 committed by GitHub
commit f212638228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 13 deletions

View file

@ -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)
},

View file

@ -22,7 +22,7 @@
<template>
<section>
<HeaderBar :readable="propertyReadable" />
<HeaderBar :is-heading="true" :readable="propertyReadable" />
<ProfileCheckbox :profile-enabled.sync="profileEnabled" />

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long