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

Report icons that lack aria-label #2550

Merged
merged 3 commits into from
May 21, 2024
Merged

Report icons that lack aria-label #2550

merged 3 commits into from
May 21, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented May 16, 2024

Fixes #2533

@hadley hadley requested a review from maelle May 16, 2024 15:35
Copy link

github-actions bot commented May 16, 2024

R/navbar-menu.R Outdated
cli::cli_inform(
c(
x = "Icon {.str {x$icon}} lacks an {.var aria-label}.",
i = "Specify {.var aria-label} to make the icon accessible to screen readers."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link to docs or explain what an aria label is? or link to the config file?

@hadley hadley merged commit 107694d into main May 21, 2024
13 of 14 checks passed
@hadley hadley deleted the icon-alt-text branch May 21, 2024 13:01
SebKrantz pushed a commit to SebKrantz/pkgdown that referenced this pull request Jun 1, 2024
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

Successfully merging this pull request may close these issues.

Warn when menu icon lacks alt text
2 participants