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

Workshop accessibility category: Perceivable #7

Open
wes-brooks opened this issue Jan 24, 2025 · 2 comments
Open

Workshop accessibility category: Perceivable #7

wes-brooks opened this issue Jan 24, 2025 · 2 comments

Comments

@wes-brooks
Copy link
Member

wes-brooks commented Jan 24, 2025

WCAG guidelines in this category:

@wes-brooks
Copy link
Member Author

wes-brooks commented Jan 24, 2025

Items to address in this category:

  • Images with no alternative text description
  • Text tables are hard to read and generally don't offer an alternative text description
  • Inline math with MathJax takes focus when tabbing through controls
  • Color blind friendly formatting
  • Caption, axis, and label text must be large enough to see

@wes-brooks
Copy link
Member Author

wes-brooks commented Jan 24, 2025

It seems that the <pre> elements used for text output from a code chunk can accept ARIA labels and descriptions that will be read by screen readers. Here are the options:

  • Use aria-label You can add an aria-label attribute to provide a concise, descriptive label for the <pre> element.
  • Use aria-labelledby If there is a visible label or heading associated with the <pre> element, you can link it using aria-labelledby.
  • Use aria-describedby For more detailed descriptions, you can provide additional context using aria-describedby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant