Repository navigation
Commit 7eebb00
Add skip-to-content link to Bootstrap-themed HTML output (#14685)
* Add skip-to-content link to bootstrap-themed HTML output (#14684)
Inject a "Skip to main content" link as the first element of the body
for all bootstrap-themed HTML output (documents, websites, books,
dashboards) so keyboard users can bypass navigation blocks (WCAG 2.4.1
Bypass Blocks). The link is visually hidden until focused, targets the
main content container (assigning an id and tabindex="-1" where
missing), and its text is localizable via the new language key
skip-to-content. Dashboards additionally mark their content container
with role="main".
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Regenerate build artifacts for the skip-to-content language key
Regenerated with `dev-call build-artifacts`, run twice: the schema
registry that produces all-schema-definitions.json is partly seeded from
the yaml-intelligence files on disk, so a new key reaches that file only
on the second build.
Part of this diff is pre-existing drift, not caused by this branch. The
committed artifacts on main are stale relative to src/resources/schema,
and all-schema-definitions.json is nondeterministic in its duplicate
description counts. Running build-artifacts on an unmodified checkout of
main produces the same four modified files.
* Move focus from the dashboard skip link without setting the hash
On a dashboard the skip link was a plain anchor jump, so the browser
pushed a history entry for "#quarto-document-content". That entry names
no page, so Back landed on a dead step: the URL changed but the visible
page did not, and the reader had to press Back twice to leave the page
they were on.
Handle the click instead: move focus to the target and leave the URL
alone. Back and Forward then behave as they do without the skip link,
and a page hash such as "#sales" survives using the link, so the
shareable URL still works. Without JS the link is still an ordinary
in-page anchor.
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Charlotte Wickham <cwickham@gmail.com>1 parent e2b8616 commit 7eebb00
33 files changed
Lines changed: 305 additions & 10 deletions
File tree
- news
- src
- config
- format
- dashboard
- html
- resources
- editor/tools
- yaml
- formats
- dashboard
- html/bootstrap
- language
- schema
- types
- zod
- tests
- docs/smoke-all/2026/07/13
- integration/playwright/tests
- smoke/site
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
| 440 | + | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| |||
696 | 697 | | |
697 | 698 | | |
698 | 699 | | |
| 700 | + | |
699 | 701 | | |
700 | 702 | | |
701 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
529 | 534 | | |
530 | 535 | | |
531 | 536 | | |
| |||
545 | 550 | | |
546 | 551 | | |
547 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
548 | 584 | | |
549 | 585 | | |
550 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10373 | 10373 | | |
10374 | 10374 | | |
10375 | 10375 | | |
| 10376 | + | |
10376 | 10377 | | |
10377 | 10378 | | |
10378 | 10379 | | |
| |||
25387 | 25388 | | |
25388 | 25389 | | |
25389 | 25390 | | |
25390 | | - | |
| 25391 | + | |
25391 | 25392 | | |
25392 | 25393 | | |
25393 | 25394 | | |
25394 | 25395 | | |
25395 | | - | |
| 25396 | + | |
25396 | 25397 | | |
25397 | 25398 | | |
25398 | 25399 | | |
| |||
25408 | 25409 | | |
25409 | 25410 | | |
25410 | 25411 | | |
25411 | | - | |
| 25412 | + | |
25412 | 25413 | | |
25413 | 25414 | | |
25414 | 25415 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3341 | 3341 | | |
3342 | 3342 | | |
3343 | 3343 | | |
| 3344 | + | |
3344 | 3345 | | |
3345 | 3346 | | |
3346 | 3347 | | |
| |||
18355 | 18356 | | |
18356 | 18357 | | |
18357 | 18358 | | |
18358 | | - | |
| 18359 | + | |
18359 | 18360 | | |
18360 | 18361 | | |
18361 | 18362 | | |
18362 | 18363 | | |
18363 | | - | |
| 18364 | + | |
18364 | 18365 | | |
18365 | 18366 | | |
18366 | 18367 | | |
| |||
18376 | 18377 | | |
18377 | 18378 | | |
18378 | 18379 | | |
18379 | | - | |
| 18380 | + | |
18380 | 18381 | | |
18381 | 18382 | | |
18382 | 18383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
147 | 166 | | |
148 | 167 | | |
149 | 168 | | |
| |||
0 commit comments