-
Notifications
You must be signed in to change notification settings - Fork 111
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
LG-12723: Add alt text to the selfie checkmark for screen readability #10401
Conversation
…selfie checkmark image for screenreaders
Is there any way we can customize this without modifying the Acuant artifacts? This doesn't feel like a sustainable approach for future releases, unless this is something that Acuant plans to address in an upcoming release. |
Mostly just so I could see the diff, I used > diff <(npx prettier --stdin-filepath AcuantPassiveLiveness.min.js < public/acuant/11.9.2/AcuantPassiveLiveness.min.js) <(npx prettier --stdin-filepath AcuantPassiveLiveness.min.js < public/acuant/11.9.2/AcuantPassiveLiveness.min.js.back)
61186c61186
< alt: 'submit',
---
> alt: 'use this photo', I've seen similar projects where we patch upstream source that we can't modify at runtime, so if we had the right build step maybe we could check this in as say, npx prettier --stdin-filepath AcuantPassiveLiveness.min.js < public/acuant/11.9.2/AcuantPassiveLiveness.min.js > expanded.js
patch -o patched.js expanded.js add-label.diff
npx terser --keep-classnames --keep-fnames --no-rename < expanded.js > FINAL_PATH_TBD.js |
@zachmargolis @aduth - this is supposed to be a one time workaround. We are expecting the next SDK v11.9.4 to come with alt tags |
@zachmargolis - sorry for any confusion here ... the alt tag does not currently exist in main. I initially added the alt tag with the value of |
got it! I diffed the wrong file version |
diff from > diff -C 1 <(npx prettier --stdin-filepath AcuantPassiveLiveness.min.js < public/acuant/11.9.2/AcuantPassiveLiveness.min.js) <(npx prettier --stdin-filepath AcuantPassiveLiveness.min.js < public/acuant/11.9.2/AcuantPassiveLiveness.min.js.back)
*** /dev/fd/11 Wed Apr 10 14:27:25 2024
--- /dev/fd/12 Wed Apr 10 14:27:25 2024
***************
*** 61185,61186 ****
--- 61185,61187 ----
onClick: this.takePhoto,
+ alt: 'use this photo',
class: 'shoot takePhoto', |
Do we have any consideration for translations here? |
@aduth - i don't think so, this code all within the SDK and the the Acuant SDK code does not perform translations |
🎫 Ticket
Link to the relevant ticket:
LG-12723
🛠 Summary of changes
Add "submit" in an alt tag to the selfie capture's green checkmark so that it can be read out by the screenreader.
📜 Testing Plan
Note: the current default SDK version is 11.9.2. This can also be tested locally in 11.9.3 by updating application.yml as follows:
idv_acuant_sdk_version_default: '11.9.3'