Closed Bug 753859 Opened 13 years ago Closed 13 years ago

Button to open tabs has no proper accessibility label, TalkBack uust says "Image button"

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 15

People

(Reporter: MarcoZ, Assigned: eeejay)

References

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

1. Download Fennec nightly. 2. Turn on accessibility and TalkBack. 3. Run Fennec. 4. navigate to the top with your directional controller. TalkBack will say "Enter search or address Button". 5. Navigate to the right, onto the button that opens the tab list. Expected: TalkBack should say something useful. Actual: TalkBack will just say "Image button". The image needs proper alternative text for TalkBack to speak its meaning correctly. This is in the native UI part of Fennec and thus not part of the Accessibility APIs Core component.
It is spoken as "image button", but visually it shows a +, or a number greater than one when there are tabs. That should somehow be relayed textually. Maybe "New Tab", and "n Tabs".
This adds some strings to localize as well. Biggest disruption is making the resource a class member.
Attachment #622986 - Flags: review?(mark.finkle)
Comment on attachment 622986 [details] [diff] [review] Added description to toolbar tabs button. Looks OK to me, but I want Sriram to OK holding on the mResources instead of just doing a getResources() as needed.
Attachment #622986 - Flags: review?(sriram)
Attachment #622986 - Flags: review?(mark.finkle)
Attachment #622986 - Flags: review+
Comment on attachment 622986 [details] [diff] [review] Added description to toolbar tabs button. Review of attachment 622986 [details] [diff] [review]: ----------------------------------------------------------------- I wouldn't add a mResources variable. It can be got from mContext when needed. For the case where the string is needed, the Context supports it (internally it does thisContext.getResources().getString()). http://developer.android.com/reference/android/content/Context.html#getString%28int%29
Attachment #622986 - Flags: review?(sriram) → review-
Removed mResource, added localization note.
Attachment #622986 - Attachment is obsolete: true
Attachment #623226 - Flags: review?(sriram)
Comment on attachment 623226 [details] [diff] [review] Added description to toolbar tabs button. Review of attachment 623226 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me.
Attachment #623226 - Flags: review?(sriram) → review+
Comment on attachment 623226 [details] [diff] [review] Added description to toolbar tabs button. >+ mTabs.setContentDescription(mContext.getString(R.string.num_tabs, count)); >+<!-- Localization note (num_tabs) : Number of tabs is always plural. --> >+<!ENTITY num_tabs "&#037;d tabs"> Some languages do not have just singular and plural states. Sometimes there are more states. I don't know if Android can handle those. This might be as good as we can do for now. Looping in L10N just in case
Comment on attachment 623226 [details] [diff] [review] Added description to toolbar tabs button. Getting Pike in the convo. I'll wait till next week to land this.
Attachment #623226 - Flags: feedback?(l10n)
Comment on attachment 623226 [details] [diff] [review] Added description to toolbar tabs button. Review of attachment 623226 [details] [diff] [review]: ----------------------------------------------------------------- Android does support plurals, http://developer.android.com/guide/topics/resources/string-resource.html#Plurals. Sadly, that requires a different set of XML elements per language, and we can't do that with our hack to get DTDs in. Short nit on the comment below. f=me with that. ::: mobile/android/base/locales/en-US/android_strings.dtd @@ +45,5 @@ > <!ENTITY forward "Forward"> > > <!ENTITY close_tab "Close Tab"> > <!ENTITY new_tab "New Tab"> > +<!-- Localization note (num_tabs) : Number of tabs is always plural. --> I'd say "more than one" instead of "plural". Also, add a comment that we can't use real plural forms, referencing this bug? Something like "We can't use android plural forms, sadly".
Attachment #623226 - Flags: feedback?(l10n) → feedback+
Assignee: nobody → eitan
Target Milestone: --- → Firefox 15
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified fixed in Fennec/15.0a1 2012-05-21
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: