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

[Accessibility issue] Vignettes lacks alt= in plots #13

Open
MichaelChirico opened this issue Feb 23, 2023 · 1 comment
Open

[Accessibility issue] Vignettes lacks alt= in plots #13

MichaelChirico opened this issue Feb 23, 2023 · 1 comment

Comments

@MichaelChirico
Copy link
Contributor

We have a tool that flags images that lack an alt= attribute. See https://help.siteimprove.com/support/solutions/articles/80000863904-accessibility-image-alt-text-best-practices -- these are essential for conveying the image contents to users on screen readers.

You can add these to your vignettes by using the recent-ish fig.alt chunk option in knitr; see https://www.rstudio.com/blog/knitr-fig-alt/.

The vignette at issue is https://github.com/mfasiolo/mvnfast/blob/32e06e8a014716d832c908ea2c5d689f9d620bbe/vignettes/mvnfast.Rmd.

Unfortunately the lines are flagged in the HTML output, which won't correspond exactly to the .Rmd file lines, but I assume if you're familiar with the vignette it will be clear which images need it:

insight/inst/doc/mvnfast.html:382
@mfasiolo
Copy link
Owner

Ok I'll make sure to add the appropriate fig.alt options to the vignette. Thanks for the pointers!

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

2 participants