Skip to content

Commit

Permalink
Add link to more info
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 20, 2024
1 parent 74ecf33 commit 6157a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/navbar-menu.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ navbar_html_text <- function(x) {
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."
i = "Specify {.var aria-label} to make the icon accessible to screen readers.",
i = "Learn more in {.vignette accessibility}."
),
.frequency = "regularly",
.frequency_id = "icon-aria-label"
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/_snaps/navbar-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
Message
x Icon "fa-question" lacks an `aria-label`.
i Specify `aria-label` to make the icon accessible to screen readers.
i Learn more in `vignette(accessibility)`.
This message is displayed once every 8 hours.

# simple components don't change without warning
Expand Down

0 comments on commit 6157a0c

Please sign in to comment.