-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add hidden context for icons in rows for summary tables #3137
Conversation
✅ Deploy Preview for ons-design-system-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Im a bit confused as to why the VR snapshots have been updated on this PR for the change to the width of radios that has just been merged in another PR. They should've been updated on the other PR. Ive already spoken to Alessio, we may need to look into our process of updating the snapshots on PRs and this could be the reason why we have been having problems with backstopJS recently. |
Cant fix the VR tests so have opened a new PR #3165 |
What is the context of this PR?
Fixes: #3030
This PR fixes the lack of context in summary tables where there is no status column and only an icon which in the case of the ticket, were checks for completion. Following from the DAC advice, we are now adding a visually hidden
<span>
to the icon's<div>
to enable adding additional contextual information. This done by setting the"iconVisuallyHiddenText": {string}
param inrowItems
adjacent to"IconType": {icon}
. The service can input the appropriate text to add context to whichever icon is being used.Please make sure that this param is set when there is no other context on the row indicating section completion status (see the new minimal example).
How to review this PR
Check the new example-minimal for the summary table and see if the new span tag with section completed is there. Sense check the output from the screen reader
Checklist
This needs to be completed by the person raising the PR.