-
Notifications
You must be signed in to change notification settings - Fork 4
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
CU - Remove testID from VABulletList component #5779
Comments
@alexandec do we still need this ticket? |
@timwright12 yes, this ticket is still valid. To see examples of the issue, search for "boldedText" in the app code. We still have 6 components where the issue occurs. |
I believe this to have been completed in d5721ee#diff-580f6e35c23c01211dbeffcd729de2a8cb34ec1eaec152aef1a6c67474b5d84dL98 |
@alexandec for ^ |
@juancstlm-a6 @TKDickson it looks like points 1 and 2 are completed already, but point 3, auditing existing usage of VABulletList and removing unneeded a11yLabels which were only added as workarounds, is not. Searching the repo for "boldedText" still shows examples of VABulletList usage where there are a11yLabels which should no longer be needed. |
@alexandec thanks for the clarification. I'll take a look at point 3 as 1 and 2 have been completed
|
@juancstlm-a6 FYI about the existence of this PR (should be merging into develop sometime today) as you start an audit |
@alexandec For clarification the VABulletList should announce |
For Items that include a {
text: t('prescription.details.banner.bullet1'),
boldedText: ' ' + t('or'),
a11yLabel: a11yLabelVA(t('prescription.details.banner.bullet1')) + ' ' + t('or'),
} I will be leaving those alone as is and not removing the We could, and I would be glad to, create a separate ticket where we can modify the {
text: t('prescription.details.banner.bullet1'),
boldedText: ' ' + t('or'),
} |
@juancstlm-a6 thanks for working on this, and I agree that the a11yLabelVA function is still needed in some cases. I checked out your draft PR and left a comment there about a possible method of simplification. See what you think. |
Over my ticket capacity, so not working on this currently. Adding blocked label. |
Picking this up now, removing blocked label |
Checking written & announced content for correct & matching formatting (ex: bolding) on all screens with bolded text in VA Bullet lists:
|
First issue: #9801. Found a similar swipe order issue (will need to check later if also in develop) on the meds not authorized alert, the Rx transferred med details banner.... seems to be impacting all expand/collapse, or alerts, on this device (Android 14 would be my first guess). Will want to check against the implementation of the DS alert component before/after. Second issue: |
OK, tickets written for the bugs found during testing & not caused by this change, #9800 ad #9801 mentioned in prior comment. The Android UI automation scripts in the PR are fine (just the one failure for URL links in the messages script that has also been failing in develop), but there was an app crash in Profile for iOS that I haven't seen before. Re-running the script to see if it was a one-off/flake, and if not I'll dig in to what's going on there. |
iOS passed on a re-run, this is good to go |
Proposed Change
The VABulletList component uses a testID which is not needed. The testID necessitates an extra workaround when using the
boldedTextPrefix
andboldedText
props because the testID omits those props, so they aren't read by the screen reader. This ticket covers:Why Should We Prioritize?
Engineers will assume VABulletList announces bolded text, but due to the testID issue, it does not. This could cause a11y issues. In addition, adding labels as workarounds takes extra time and is error-prone. Removing the testID will fix these issues.
Coding Time Estimation
3
Testing Considerations
All uses of VABulletList will need to be checked with screen readers on iOS and Android. There are 17 files using VABulletList as of May 2023.
Checklist
[X] Add the front-end label tag
[X] Attach to the Frontend epic for engineering initiatives
The text was updated successfully, but these errors were encountered: