vpat 18: added aria labels to inputs in settings (#3985)

This commit is contained in:
abaevbog 2024-04-16 00:51:49 -04:00 committed by GitHub
parent 687ba53afd
commit d4905854eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View file

@ -172,8 +172,9 @@
</hbox>
<hbox style="display: flex; align-items: center;">
<label value="&zotero.preferences.openurl.server;"/>
<label id="openUrl-label" value="&zotero.preferences.openurl.server;"/>
<html:input type="text" id="openURLServerField" style="flex: 1;"
aria-labelledby="openURLServerField"
oninput="Zotero_Preferences.General.onOpenURLCustomized();"
preference="extensions.zotero.openURL.resolver"
/>
@ -198,8 +199,8 @@
<checkbox label="&zotero.preferences.automaticTags;" preference="extensions.zotero.automaticTags" native="true"/>
<hbox align="center">
<label value="&zotero.preferences.trashAutoEmptyDaysPre;"/>
<html:input type="text" size="2" preference="extensions.zotero.trashAutoEmptyDays"/>
<label id="trashAutoEmpty-label" value="&zotero.preferences.trashAutoEmptyDaysPre;"/>
<html:input aria-labelledby="trashAutoEmpty-label" type="text" size="2" preference="extensions.zotero.trashAutoEmptyDays"/>
<label value="&zotero.preferences.trashAutoEmptyDaysPost;"/>
</hbox>
</groupbox>

View file

@ -30,15 +30,15 @@
<hbox>
<html:div class="form-grid">
<label value="&zotero.preferences.sync.username;"/>
<html:input id="sync-username-textbox"
<label id="username-label" value="&zotero.preferences.sync.username;"/>
<html:input id="sync-username-textbox" aria-labelledby="username-label"
onblur="Zotero_Preferences.Sync.trimUsername()"
oninput="Zotero_Preferences.Sync.credentialsChange(event)"
onchange="Zotero_Preferences.Sync.credentialsChange(event)"
onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event)"/>
<label value="&zotero.preferences.sync.password;"/>
<html:input id="sync-password" type="password"
<label id="password-label" value="&zotero.preferences.sync.password;"/>
<html:input id="sync-password" type="password" aria-labelledby="password-label"
oninput="Zotero_Preferences.Sync.credentialsChange(event)"
onchange="Zotero_Preferences.Sync.credentialsChange(event)"
onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event)"/>