#5613 - Accessibility labels incorrect for multi fields
| Identifier | #5613 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Accessibility labels incorrect for multi fields |
| Status | Completed |
| Handling member | PDStig |
| Version | 11 alpha4 |
| Addon | core_form_interfaces |
| Description | The "for" attribute of labels on multi-line fields is wrong. Since these fields are suffixed with _index, this method of doing labels will not work.
We will need to create a new label for every new input that is created. Do this via JavaScript. |
| Steps to reproduce | |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
The "for" attribute of labels on multi-line fields is wrong. Since these fields are suffixed with _index, this method of doing labels will not work.
Actually I did not see this happening anymore, but what should have been happening was a new "accessibility-hidden" label element for each new field. It only existed on the first input but not the new ones. This patch fixes the JS so that a new label is created for each new input.