mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 18:17:56 -05:00
fix(a11y): Account fields name their autocomplete purpose (#35467)
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -296,6 +296,7 @@
|
||||
class={inputClass}
|
||||
type="text"
|
||||
bind:value={name}
|
||||
autocomplete="name"
|
||||
aria-label={$i18n.t('settings.personal.account.name.label')}
|
||||
required
|
||||
placeholder={$i18n.t('Enter your name')}
|
||||
@@ -321,6 +322,7 @@
|
||||
>
|
||||
<SettingsSelect
|
||||
bind:value={_gender}
|
||||
autocomplete="sex"
|
||||
className="w-full"
|
||||
ariaLabel={$i18n.t('settings.personal.account.gender.label')}
|
||||
on:change={() => {
|
||||
@@ -348,6 +350,7 @@
|
||||
aria-label={$i18n.t('Custom Gender')}
|
||||
placeholder={$i18n.t('Enter your gender')}
|
||||
bind:value={gender}
|
||||
autocomplete="sex"
|
||||
/>
|
||||
{/if}
|
||||
</UserSettingField>
|
||||
@@ -362,6 +365,7 @@
|
||||
max={new Date().toISOString().slice(0, 10)}
|
||||
aria-label={$i18n.t('settings.personal.account.birthDate.label')}
|
||||
bind:value={dateOfBirth}
|
||||
autocomplete="bday"
|
||||
/>
|
||||
</UserSettingField>
|
||||
</UserSettingSection>
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
type="password"
|
||||
bind:value={newPasswordConfirm}
|
||||
placeholder={$i18n.t('Confirm your new password')}
|
||||
autocomplete="off"
|
||||
autocomplete="new-password"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user