Closed lsat12357 closed 3 weeks ago
17 files ±0 17 suites ±0 2h 16m 15s ⏱️ - 1m 25s 6 717 tests ±0 6 419 ✅ - 1 297 💤 ±0 1 ❌ +1 13 204 runs ±0 12 807 ✅ - 1 396 💤 ±0 1 ❌ +1
For more details on these failures, see this check.
Results for commit f75060ce. ± Comparison against base commit a8ae9539.
:recycle: This comment has been updated with latest results.
The changes to the file are the addition of the function _addInitialID() and its call in init()
Fixes
Fixes #6802
Summary
The situation stems from multiple inputs needing to be associated with one label elt. The current setup is compliant until a second input is automatically generated when the first one has a value.
Guidance for testing, such as acceptance criteria or new user interface behaviors:
Type of change (for release notes)
notes-minor
Detailed Description
As it stands, the title label element has no ID, uses for= to associate with the initial title input.
When a second title input is automatically added, the label's "for" property would no longer be of use. Instead, both inputs use aria-labelledby="collection_title_label" but the label elt does not have that ID. The proposed fix adds javascript to add the appropriate ID to the label elt.
This fix was originally published here: https://github.com/OregonDigital/OD2/commit/f32e7e86fd73a7f7484fbccc6913641535c519ab
Changes proposed in this pull request:
@samvera/hyrax-code-reviewers