Closed
Bug 1280393
Opened 8 years ago
Closed 7 years ago
[a11y] All inputs and selects need to be labeled properly
Categories
(bugzilla.mozilla.org :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: MarcoZ, Unassigned)
References
Details
(Keywords: access)
Attachments
(1 file, 2 obsolete files)
9.66 KB,
patch
|
dylan
:
review+
|
Details | Diff | Splinter Review |
In Edit mode, none of the inputs and selects have an associated label. So each label needs to become a proper <label> element, and its for attribute must point to the proper ID of the select or input it is labeling. To see those, you need to actually edit the bug you're viewing. Right now, screen reader users have no clue when tabbing through the form which field is for what. No exception, they all fail this test currently.
Comment 1•7 years ago
|
||
We would like to fix this before we switch over to modal as default.
Blocks: 1150541
Comment 2•7 years ago
|
||
This patch adds labels where it does not currently use a link to a help page or other landing cgi page in BMO. dkl
Comment 3•7 years ago
|
||
I don't think this is enough, as it means that the whiteboard status label isn't a label for the screen reader. It will be a link to the wiki -- unless I misunderstand. Maybe you could toss this up on bugzilla-dev and shoot a needinfo over to marco?
Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Dylan Hardison [:dylan] from comment #3) > I don't think this is enough, as it means that the whiteboard status label > isn't a label for the screen reader. > It will be a link to the wiki -- unless I misunderstand. You can solve this by adding the aria-labelledby attribute to the input (or select where appropriate), and give it the ID of the link that is the associated label. This will take care of the labeling for the screen reader. It will grab the text from the element with that ID and add it as a label.
Comment 5•7 years ago
|
||
(In reply to Marco Zehe (:MarcoZ) from comment #4) > (In reply to Dylan Hardison [:dylan] from comment #3) > > I don't think this is enough, as it means that the whiteboard status label > > isn't a label for the screen reader. > > It will be a link to the wiki -- unless I misunderstand. > > You can solve this by adding the aria-labelledby attribute to the input (or > select where appropriate), and give it the ID of the link that is the > associated label. This will take care of the labeling for the screen reader. > It will grab the text from the element with that ID and add it as a label. Thanks. That was the missing bit I needed. I will make a new patch shortly. dkl
Comment 6•7 years ago
|
||
Attachment #8829520 -
Attachment is obsolete: true
Attachment #8829520 -
Flags: review?(dylan)
Attachment #8830077 -
Flags: review?(dylan)
Comment 7•7 years ago
|
||
To https://github.com/mozilla-bteam/bmo.git 491ba5e..194b687 development -> development Marco I have put this latest patch on our test server https://bugzilla-dev.allizom.org for your final feedback. dkl
Flags: needinfo?(mzehe)
Comment on attachment 8830077 [details] [diff] [review] 1280393_2.patch Review of attachment 8830077 [details] [diff] [review]: ----------------------------------------------------------------- ::: extensions/BugModal/template/en/default/bug_modal/field.html.tmpl @@ +113,5 @@ > + <label for="priority"> > + [% ELSIF label == "Status" %] > + <label for="bug_status"> > + [% ELSIF label == "Platform" %] > + <label for="rep_platform"> wouldn't it be better to pass in an optional label_for param rather than hard coding field names into field.html.tmpl?
Reporter | ||
Comment 9•7 years ago
|
||
This is working great, except for the textarea for an additional comment. Here, set aria-labelledby to the ID comment-edit-tab, so it gets the label from the tab, that will suffice. Screen readers have a way to list only form elements, so this definitely needs a label to be listed properly.
Flags: needinfo?(mzehe)
Comment 10•7 years ago
|
||
Updated based on Marco's and glob's suggested changes. dkl
Attachment #8830077 -
Attachment is obsolete: true
Attachment #8830077 -
Flags: review?(dylan)
Updated•7 years ago
|
Attachment #8830536 -
Flags: review?(dylan)
Comment 11•7 years ago
|
||
Comment on attachment 8830536 [details] [diff] [review] 1280393_3.patch Review of attachment 8830536 [details] [diff] [review]: ----------------------------------------------------------------- r=dylan
Attachment #8830536 -
Flags: review?(dylan) → review+
Comment 12•7 years ago
|
||
To https://github.com/mozilla-bteam/bmo.git 39ace7e..d0cc4c7 master -> master
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: User Interface: Modal → User Interface
Updated•5 years ago
|
Assignee: dkl → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•