Closed Bug 432046 Opened 18 years ago Closed 18 years ago

Accessibility fixes in mailnews/base/prefs Account Manager XUL files.

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Thunderbird 3

People

(Reporter: MarcoZ, Assigned: MarcoZ)

References

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

Add missing label/control associations (if any), give all xul:page elements title attributes so screen readers pick up a useful title rather than the chrome URL, add aria-labelledby to some controls to make the context more visible to screen reader users.
Attached patch Patch (obsolete) — — Splinter Review
Attachment #319204 - Flags: superreview?(neil)
Attachment #319204 - Flags: review?(bugzilla)
Blocks: 393860
Comment on attachment 319204 [details] [diff] [review] Patch > <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >- onload="onLoad();"> >+ onload="onLoad();" title="&addressing.label;"> What does this do? >+ document.title = titleValue; And this?
(In reply to comment #2) > (From update of attachment 319204 [details] [diff] [review]) > > <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > >- onload="onLoad();"> > >+ onload="onLoad();" title="&addressing.label;"> > What does this do? > > >+ document.title = titleValue; > And this? It makes sure that the accessible created for the xul:page element, which is of type "grouping", gets a proper accessible name. If this is not specified, like it is now, the fallback is to use the chrome:// URL, which is very cryptic and not user-friendly when tabbing into the page from the "Add" and "Remove" buttons.
Attached patch Updated patch — — Splinter Review
Address various review comments, reduce edits, replace xul:description/aria-labelledby constructs with xul:label with control.
Attachment #319204 - Attachment is obsolete: true
Attachment #320683 - Flags: superreview?(neil)
Attachment #320683 - Flags: review?(bugzilla)
Attachment #319204 - Flags: superreview?(neil)
Attachment #319204 - Flags: review?(bugzilla)
Comment on attachment 320683 [details] [diff] [review] Updated patch Index: mailnews/base/prefs/resources/content/am-copiesOverlay.xul <menulist id="msgFccAccountPicker" - oncommand="noteSelectionChange('fcc_selectAccount')" - observes="broadcaster_doFcc"/> + aria-labelledby="fcc_selectAccount" + oncommand="noteSelectionChange('fcc_selectAccount')" + observes="broadcaster_doFcc"/> Nit: alignment not right. Same for id="msgFccFolderPicker" -<description flex="1">&identitiesListDesc.label;</description> +<label control="identitiesList" flex="1">&identitiesListDesc.label;</label> So I don't understand why you don't just put the value attribute into the label element like we do normally (in two places in this patch), i.e. <label value="&identitiesListDesc.label;" ...>
(In reply to comment #5) > -<description flex="1">&identitiesListDesc.label;</description> > +<label control="identitiesList" flex="1">&identitiesListDesc.label;</label> > So I don't understand why you don't just put the value attribute into the label > element like we do normally (in two places in this patch), i.e. A xul:label with a value cannot wrap, a xul:label with the text enclosed within opening and closing tags can. I was assuming that, because xul:description had been used originally, wrapping was desired, and that the original author simply wasn't aware of the fact that label text put inbetween tags also wraps. So I kept the text within the label tags instead of putting it into the value attribute.
Fixed erroneous tabs and alignment in both comboboxes.
Comment on attachment 320683 [details] [diff] [review] Updated patch + <menulist id="directoriesList" wsm_persist="true" style="min-width: 16em;" aria-labelledby=""directories"> This can't be right, ""directories". r=me with the quotes fixed.
Attachment #320683 - Flags: review?(bugzilla) → review+
Quotes fixed, thanks!
Comment on attachment 320683 [details] [diff] [review] Updated patch I'm not sure I should have mentioned the label/description distinction which made you change that part of this patch in the first place, but I've now decided that leaving the descriptions and using aria-labelledby makes just as much sense.
Attachment #320683 - Flags: superreview?(neil) → superreview+
Checking in mailnews/base/prefs/resources/content/am-addressing.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-addressing.xul,v <-- am-addressing.xul new revision: 1.21; previous revision: 1.20 done Checking in mailnews/base/prefs/resources/content/am-addressingOverlay.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-addressingOverlay.xul,v <-- am-addressingOverlay.xul new revision: 1.13; previous revision: 1.12 done Checking in mailnews/base/prefs/resources/content/am-copies.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-copies.xul,v <-- am-copies.xul new revision: 1.68; previous revision: 1.67 done Checking in mailnews/base/prefs/resources/content/am-copiesOverlay.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-copiesOverlay.xul,v <-- am-copiesOverlay.xul new revision: 1.7; previous revision: 1.6 done Checking in mailnews/base/prefs/resources/content/am-identities-list.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-identities-list.xul,v <-- am-identities-list.xul new revision: 1.5; previous revision: 1.4 done Checking in mailnews/base/prefs/resources/content/am-identity-edit.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-identity-edit.xul,v <-- am-identity-edit.xul new revision: 1.7; previous revision: 1.6 done Checking in mailnews/base/prefs/resources/content/am-junk.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-junk.xul,v <-- am-junk.xul new revision: 1.8; previous revision: 1.7 done Checking in mailnews/base/prefs/resources/content/am-main.js; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-main.js,v <-- am-main.js new revision: 1.21; previous revision: 1.20 done Checking in mailnews/base/prefs/resources/content/am-main.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-main.xul,v <-- am-main.xul new revision: 1.74; previous revision: 1.73 done Checking in mailnews/base/prefs/resources/content/am-offline.js; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-offline.js,v <-- am-offline.js new revision: 1.27; previous revision: 1.26 done Checking in mailnews/base/prefs/resources/content/am-offline.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-offline.xul,v <-- am-offline.xul new revision: 1.31; previous revision: 1.30 done Checking in mailnews/base/prefs/resources/content/am-server-advanced.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-server-advanced.xul,v <-- am-server-advanced.xul new revision: 1.9; previous revision: 1.8 done Checking in mailnews/base/prefs/resources/content/am-server.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-server.xul,v <-- am-server.xul new revision: 1.123; previous revision: 1.122 done Checking in mailnews/base/prefs/resources/content/am-serverwithnoidentities.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-serverwithnoidentities.xul,v <-- am-serverwithnoidentities.xul new revision: 1.32; previous revision: 1.31 done Checking in mailnews/base/prefs/resources/content/am-smtp.xul; /cvsroot/mozilla/mailnews/base/prefs/resources/content/am-smtp.xul,v <-- am-smtp.xul new revision: 1.34; previous revision: 1.33 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Blocks: 370391
Verified fixed using both Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9pre) Gecko/2008051502 SeaMonkey/2.0a1pre and Thunderbird version 3.0a2pre (2008051503)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: