From 7f28d83162c078425a0cc469be9170a0f8a10fbe Mon Sep 17 00:00:00 2001 From: Greg Lin Date: Sun, 17 Aug 2025 18:19:56 -0500 Subject: [PATCH] a11y: fix keyboard navigation for tabset panels in websites when using an HTML theme --- news/changelog-1.8.md | 1 + src/resources/filters/customnodes/panel-tabset.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/news/changelog-1.8.md b/news/changelog-1.8.md index 51572044710..ba2b84abce2 100644 --- a/news/changelog-1.8.md +++ b/news/changelog-1.8.md @@ -66,6 +66,7 @@ All changes included in 1.8: ### `website` +- ([#10284](https://github.com/quarto-dev/quarto-cli/issues/10284)): a11y - Fix keyboard navigation for tabset panels when using an HTML theme. Tabs now properly receive keyboard focus. - ([#12551](https://github.com/quarto-dev/quarto-cli/pull/12551)): Improve warning issued when `aliases` would overwrite an existing document. - ([#12616](https://github.com/quarto-dev/quarto-cli/issues/12616)): find SVG images in image discovery for listings. - ([#12693](https://github.com/quarto-dev/quarto-cli/issues/12693)): Prevent resource exhaustion on large websites by serializing `NotebookContext` information to file instead of the environment. diff --git a/src/resources/filters/customnodes/panel-tabset.lua b/src/resources/filters/customnodes/panel-tabset.lua index 03b208fb88a..75972b75050 100644 --- a/src/resources/filters/customnodes/panel-tabset.lua +++ b/src/resources/filters/customnodes/panel-tabset.lua @@ -286,7 +286,7 @@ function bootstrapTabs() active = " active" selected = "true" end - return 'class="nav-link' .. active .. '" id="' .. tablinkid .. '" data-bs-toggle="tab" data-bs-target="#' .. tabid .. '" role="tab" aria-controls="' .. tabid .. '" aria-selected="' .. selected .. '"' + return 'class="nav-link' .. active .. '" id="' .. tablinkid .. '" data-bs-toggle="tab" data-bs-target="#' .. tabid .. '" role="tab" aria-controls="' .. tabid .. '" aria-selected="' .. selected .. '" href=""' end, paneAttribs = function(tabid, isActive, headingAttribs) local tablinkid = tabid .. "-tab"