feat(a11y): improve My Account payment-details/address-book components readability support
Closes https://jira.tools.sap/browse/CXSPA-8195
spartacus
Run #45633
Run Properties:
Passed #45633 •
ebbb6836f9 ℹ️: Merge c4618a6abdc4edac95be47d7b7175c9794108715 into 4259cfd252d3ad72eceac480657b...
| Project |
spartacus
|
| Branch Review |
feature/CXSPA-8195
|
| Run status |
|
| Run duration | 12m 30s |
| Commit |
|
| Committer | Uros Lates |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
4
|
|
|
2
|
|
|
0
|
|
|
125
|
| ⚠️ You've recorded test results over your free plan limit. Upgrade your plan to view test results. | |
| View all changes introduced in this branch ↗︎ | |
@uroslates the combination of aria-label + aria-describedby provides the expected narration. Just a couple of adjustments please for both, Payments and Addresses:
- Please remove
role="application", you probably meantpresentation, but even that one is not needed, if I remove the role attribute completely the information still gets narrated properly. - You will have to generate differentiated IDs for each container, currently, if a user has more than two payment methods and addresses the content of the first card is always narrated for the rest of the cards.
After conversation with Miguel we decided to use role application and combination of aria-label+aria-describedby (with dynamic id). This combination vocalises both aria-labels and children's content.
@uroslates I've tested this with JAWS on my end and it's all good. Let's just wait for a developer to review the code before merging. Thanks.
Merge Checks Failed
Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`