Fix accessibility issues with placeholder text in submission forms by removing placeholders#4199
Conversation
…ngly used placeholder in date legend
|
Temporarily closing & reopening this PR to trigger tests to run again. The e2e test failures currently in this PR seem unrelated to the PR itself, and I'm hoping reopening this PR will get this to run against latest |
|
@FrancescoMolinaro : Just a note this PR seems to be failing the automated accessibility scan that is done in e2e tests. The failure is in the Submission Form and it says this: |
|
Hi @FrancescoMolinaro, |
|
Hi @tdonohue , sorry for the delay on this one, I have adapted the code to handle also the native components from the form library, the PR should be ready now. |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @FrancescoMolinaro ! I retested this today and, as expected, I see that all placeholder text is now removed from the submission form. I didn't notice any side effects to that change. I also feel this is the easiest way to fix the ongoing issues with accessibility of placeholder text.
NOTE: Unfortunately, this won't be possible to backport until #4777 is backported (as that related fix hasn't been backported yet).
|
Hi @FrancescoMolinaro, |
|
Hi @FrancescoMolinaro, |
|
Hi @FrancescoMolinaro, |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @FrancescoMolinaro ! I retested this today and it's looking good. Since #4777 was backported to 9.x and 8.x, I'd like to also backport these accessibility fixes to dspace-9_x and dspace-8_x branches as well.
Merging with one approval & flagging for auto-backport
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-4199-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-4199-to-dspace-8_x
git switch --create backport-4199-to-dspace-8_x
git cherry-pick -x 8a2aa4641777be5a22b4b967a043c282b7d1ff49 800a9b5a281572e2a8c0de8753d6f1b67b48ad53 4bf7bedf96d07bed89243b0e0b1a14568f5dbdf4 ef8590f28bdd78cb7158405a0cc35feed9bc8c90 4139d3574271d6c58957002f587d2dc8792a43c3 e560bb485b84c868addd529b38e8182be6a94e13 044da75b001212291e5dffeae9350a307d818ce9 68dd890324dba7efd0e60edfa390673dd61e6189 4680a001b52b54bd4dfddd1f1187e32e5ccb52ae a448157eefaaa0e7fcadf134254e1c4e40a709ba |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-9_x
git worktree add -d .worktree/backport-4199-to-dspace-9_x origin/dspace-9_x
cd .worktree/backport-4199-to-dspace-9_x
git switch --create backport-4199-to-dspace-9_x
git cherry-pick -x 8a2aa4641777be5a22b4b967a043c282b7d1ff49 800a9b5a281572e2a8c0de8753d6f1b67b48ad53 4bf7bedf96d07bed89243b0e0b1a14568f5dbdf4 ef8590f28bdd78cb7158405a0cc35feed9bc8c90 4139d3574271d6c58957002f587d2dc8792a43c3 e560bb485b84c868addd529b38e8182be6a94e13 044da75b001212291e5dffeae9350a307d818ce9 68dd890324dba7efd0e60edfa390673dd61e6189 4680a001b52b54bd4dfddd1f1187e32e5ccb52ae a448157eefaaa0e7fcadf134254e1c4e40a709ba |
|
@FrancescoMolinaro : This was unable to be auto-backported to |
References
Fixes #4198
Description
Following what is described in https://www.deque.com/blog/accessible-forms-the-problem-with-placeholders/ as an issue with placeholder, this PR removes all placeholders on submission form fields (replacing them with labels where needed)
Instructions for Reviewers
Placeholders should no longer exist on any fields within the submission form. The Series/Report No. field now has sublabels.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
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.