Skip to content
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 #3165

Merged

Conversation

adi-unni
Copy link
Contributor

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 in rowItems 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.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@adi-unni adi-unni added the Accessibility Issues discovered through accessibility testing label Apr 30, 2024
@adi-unni adi-unni requested a review from a team April 30, 2024 11:01
@adi-unni adi-unni self-assigned this Apr 30, 2024
Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit 8513768
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/6630cf7c32a3490008a0248f
😎 Deploy Preview https://deploy-preview-3165--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alessioventuriniAND
Copy link
Contributor

Can you also raise a ticket to add this new example to the summary component?

@adi-unni
Copy link
Contributor Author

adi-unni commented May 1, 2024

Update documentation in this issue

@adi-unni adi-unni merged commit eb82eb7 into main May 1, 2024
10 checks passed
@adi-unni adi-unni deleted the enhancement/3030/add-content-textual-alternatives-to-tables branch May 1, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Issues discovered through accessibility testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-text content: textual alternatives (WCAG 2.2 Level A - Accessibility)
4 participants