-
Notifications
You must be signed in to change notification settings - Fork 497
Fix submission form's "serious" accessibility issues #4777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
464758f to
85f1dbc
Compare
|
Hi @AndreaBarbasso, |
# Conflicts: # src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.spec.ts # src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.spec.ts # src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts # src/app/shared/form/builder/ds-dynamic-form-ui/models/relation-group/dynamic-relation-group.component.spec.ts # src/app/shared/resource-policies/form/resource-policy-form.component.spec.ts # src/app/shared/upload/uploader/uploader.component.spec.ts # src/app/shared/upload/uploader/uploader.component.ts # src/app/submission/sections/license/section-license.component.spec.ts
tdonohue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreaBarbasso : Apologies for the delay in reviewing this, but I've finally gotten around to testing/reviewing this with the backend PR. Overall, it looks great. However, I think I've found a bug where the "Live Region" isn't updating itself in a timely manner.
Here's what I'm doing:
- Login as an Admin and start a new submission
- Open your browser DevTools, and use the "Elements" tab to view the HTML source of the submission form. Find the "" tag, so that you can watch what appears in that region. Initially it'll be empty.
- Now, in the submission form. Just fill out an Author in the first section and upload a file.
- In the "" tag, you'll see the upload successful message and error messages for the other required fields (e.g. title, date, type, and license field).
- Now, add a Title and Date. Upload another file.
- The "" tag will show a confirmation of file upload. But, you won't see errors for the other fields that are missing (Type and License)
- Now add a Type and click "Save".
- The "" will not display the License error even though it's visible on the page.
Essentially, the Live Region doesn't seem to be "synced" with what is visible on the page. There are times that it's correct, but if you add a missing field and save quickly, you'll still see other errors on the page but they'll disappear from the Live Region.
I've verified also that all the accessibility issues except one are fixed in #1187. The only one which is not fixed is this one:
(ID 469928) "Non-decorative content is inserted using CSS pseudo-elements." affects several icons in the form : (1) draggable icon for reordering values
In that case, the draggable icon (for reordering authors, etc) still is using CSS::beforepseudo element. This is optional to fix in this PR, but I wanted to note that it's still appearing.
Everything else though looks good. I've checked everything else listed in #1187 and it's all fixed.
|
Hi @AndreaBarbasso, |
References
Description
Added a11y features for "serious" problems occurring in the submission form.
Instructions for Reviewers
List of changes in this PR:
To test/review the PR, check that the functionality of the submission form has not been altered, and that a11y tests now do not contain serious issues.
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.