From f9cc49f9518e64cabfc0205492ff48fbe2a5302d Mon Sep 17 00:00:00 2001 From: charliejhadley Date: Mon, 22 Jun 2026 14:07:14 +0100 Subject: [PATCH 1/2] aa-cursor class adds keyboard navigation to search --- inst/BS5/assets/pkgdown.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inst/BS5/assets/pkgdown.scss b/inst/BS5/assets/pkgdown.scss index 8d3db061b..8acc3d77b 100644 --- a/inst/BS5/assets/pkgdown.scss +++ b/inst/BS5/assets/pkgdown.scss @@ -740,7 +740,8 @@ mark { padding: 0.5rem 0.25rem; line-height: 1.3; - &:hover { + &:hover, + &.aa-cursor { background-color: var(--bs-tertiary-bg); color: var(--bs-body-color); } From 12544f63f931936e7d65856aac30a84826975504 Mon Sep 17 00:00:00 2001 From: charliejhadley Date: Mon, 22 Jun 2026 14:07:35 +0100 Subject: [PATCH 2/2] Update news with search accessibility improvement --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index bb0b748e5..d36a4cd04 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,8 @@ * When previewing a site, it is now served via a local http server. This enables dynamic features such as search to work correctly (@shikokuchuo, #2975). * Code in a link (href) is no longer autolinked (#2972) +* Search results are now accessible via keyboard navigation (#2997) + # pkgdown 2.2.0 * Make `build_llm_docs()` more robust to the use of old Pandoc (@nanxstats, @galachad, #2952, #2954)