From 81e57e29a4c7f4f0dfeadeeaf83e9b3cc1b1f028 Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Tue, 22 Sep 2026 13:59:42 -0700 Subject: [PATCH] Add code-preview-title to name code-preview iframes The iframe that code-preview inserts had no title, so it had no accessible name (axe-core frame-title). The new code-preview-title code block attribute sets it. Fixes #14770 --- news/changelog-1.11.md | 1 + src/format/html/format-html.ts | 8 ++++++ .../09/22/issue-14770/code-preview-title.qmd | 26 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 tests/docs/smoke-all/2026/09/22/issue-14770/code-preview-title.qmd diff --git a/news/changelog-1.11.md b/news/changelog-1.11.md index e2a79b3b1e1..738ec09c096 100644 --- a/news/changelog-1.11.md +++ b/news/changelog-1.11.md @@ -15,6 +15,7 @@ All changes included in 1.11: - ([#14376](https://github.com/quarto-dev/quarto-cli/issues/14376)): Add a distinct, localizable `aria-label` to each navigation landmark of websites and books: the navbar (`Site`), the sidebar (`Section`, or `Site` when there is no navbar), the narrow-viewport toolbar (`Toolbar`), the previous/next page navigation (`Page`), and the breadcrumbs (`Breadcrumbs`) (previously hardcoded English `breadcrumb`). The new `navigation-*-label` language keys can be overridden with `language:` metadata. - ([#14376](https://github.com/quarto-dev/quarto-cli/issues/14376)): Translate the new `navigation-*-label` keys in all 33 built-in language files. The values are drawn from existing human-translated interface strings (LibreOffice, GNOME, Wikidata) and each one carries a comment naming its source; values that were adapted rather than used verbatim are marked `needs review`. - ([#14376](https://github.com/quarto-dev/quarto-cli/issues/14376)): Label the table of contents `