Skip to content

Commit 89453a5

Browse files
committed
docs(pkgdown): add aria-label to icon-only navbar items (home, github)
pkgdown's accessibility check warned that an icon-only navbar entry lacks an `aria-label` for screen readers ("Icon fa-home lacks an aria-label"; the message is throttled to once per 8h so only the first offender printed). Add `aria-label` to the `home` and `github` components -- the only icon-only navbar items. `twitter` already had one, and reference/articles/news/network/data carry visible text, so they need none.
1 parent b26ee8d commit 89453a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

_pkgdown.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ navbar:
5757
description: Functions to Access Men's Baseball Play by Play Data
5858
icon: fa-home
5959
href: index.html
60+
aria-label: Home
6061
reference:
6162
icon: "fas fa-code"
6263
text: " Funcs"
@@ -196,6 +197,7 @@ navbar:
196197
github:
197198
icon: "fab fa-github fa-lg"
198199
href: https://github.com/billpetti/baseballr/
200+
aria-label: GitHub
199201
twitter:
200202
icon: "fa-twitter"
201203
href: http://twitter.com/BillPetti

0 commit comments

Comments
 (0)