Notebook preview header title takes the heading colour on the primary background
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 85/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- bootstrap, javascript, sass
- Domaine
- accessibility, frontend
Piste de recherche
Commencez par le modèle d’intégration lié dans src/resources/formats/html/embed/template.html, en particulier les lignes 126–129, et examinez son bloc de styles ainsi que le h6 dans #quarto-embed-header.bg-primary. Reproduisez le problème avec le paramètre de thème personnalisé fourni $headings-color et l’exemple d’intégration de notebook. Le travail est terminé lorsque le titre correspond au texte blanc du bouton de retour et présente un contraste suffisant sur le fond principal.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
The notebook preview page puts its title in an h6 inside #quarto-embed-header.bg-primary.
.bg-primary sets only the background, and Bootstrap gives every heading color: var(--bs-heading-color).
When a theme sets $headings-color, the title takes that colour on the primary background, while the back button next to it stays white.
With default, cosmo, flatly, and litera, $headings-color is unset, so the title inherits white and the problem does not show.
A theme or brand with dark heading ink is enough to break it.
Steps to reproduce
_quarto.yml:
project:
type: website
website:
title: "Embed header"
format:
html:
theme: [default, custom.scss]
custom.scss:
/*-- scss:defaults --*/
$headings-color: #1f2a37;
index.qmd:
---
title: "Embed header contrast"
---
{{< embed notebook.ipynb#answer >}}
notebook.ipynb holds one code cell with #| label: answer and a saved output.
Run quarto render and open _site/notebook-preview.html.
Actual behavior
Computed colours in Chromium 156:
header background rgb(13, 110, 253)
h6 title rgb(31, 42, 55) 3.23:1
back link button rgb(255, 255, 255)
The title is 1.1em at weight 400, so it needs 4.5:1 under WCAG 2.2 Success Criterion 1.4.3.
With $primary: #47709a as well, the ratio drops to 2.81:1.
Expected behavior
The title uses the same colour as the back button beside it.
Adding #quarto-embed-header h6 { color: inherit; } to the page brings the title back to white (4.50:1 on the default primary).
That rule could sit in the style block of the embed template.
| Before | With color: inherit |
|---|---|
Your environment
- IDE: none, command line.
- OS: macOS 27.2.
- Browser: Chromium 156.0.8078.4 (Playwright).
Quarto check output
Reproduced with a development build of main at 089ba530b.
The embed template is the same at the v1.11.9 tag.
Quarto 99.9.9
[✓] Checking environment information...
Quarto cache location: /Users/mcanouil/Library/Caches/quarto
Project: none found (single-file mode)
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 089ba530b3ed4ec156a355d41b6b7de2db3e44ea
Path: /Users/mcanouil/Projects/quarto-dev/quarto-cli/package/dist/bin
[✓] Checking tools....................OK
TinyTeX: v2026.07
Chrome Headless Shell: (not installed)
VeraPDF: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/mcanouil/Library/TinyTeX/bin/universal-darwin
Version: 2026
[✓] Checking Chrome Headless....................OK
Using: Chrome from QUARTO_CHROMIUM
Path: /Applications/Brave Browser.app/Contents/MacOS/Brave Browser
[✓] Checking basic markdown render....OK
- Langage dominant
- JavaScript
- Étoiles
- 6.1k
- Forks
- 478
- Merge moyen
- 17 h 53 min
- PR mergées (30 j)
- 135
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de quarto-dev/quarto-cli
-
bootstrap bug themes
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
quarto-dev/quarto-cli#15304 ·
Les mainteneurs répondent en général sous 1 jour
-
accessibility bug code-blocks html themes
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
quarto-dev/quarto-cli#15303 ·
Les mainteneurs répondent en général sous 1 jour
-
accessibility brand bug dark-mode
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
quarto-dev/quarto-cli#15301 ·
Les mainteneurs répondent en général sous 1 jour
-
bootstrap bug html tables
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
quarto-dev/quarto-cli#15300 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug html
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
quarto-dev/quarto-cli#15297 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de quarto-dev/quarto-cli
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 87/100
OWASP/CheatSheetSeries#2905 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ComposioHQ/composio#5249 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
zilliztech/memsearch#838 ·
Les mainteneurs répondent en général sous 1 jour
-
[DOCS] Nine one-colon directives hide code examples and notes in the reference docs (e.g. CustomJS)OuverteTRIAGE
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
cdx-audit output written to a pipe is cut off at 64 KiBPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouvertebug mode:cli
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour