diff --git a/news/changelog-1.12.md b/news/changelog-1.12.md index fc75b3ed02a..f2550ff7ea6 100644 --- a/news/changelog-1.12.md +++ b/news/changelog-1.12.md @@ -11,6 +11,7 @@ All changes included in 1.12: ## Accessibility - ([#15269](https://github.com/quarto-dev/quarto-cli/pull/15269)): Announce every link that opens a new tab to screen readers, not only links opened by `link-external-newwindow`. (author: @mcanouil) +- ([#15306](https://github.com/quarto-dev/quarto-cli/issues/15306)): Fix the notebook preview title taking the theme's heading color on the primary-colored header bar, which left it low-contrast or unreadable with themes such as `lux` or a custom `$headings-color`. The title now uses the same color as the header buttons. (author: @SabyaXSachi) ## Formats diff --git a/src/resources/formats/html/embed/template.html b/src/resources/formats/html/embed/template.html index faf33fb7f08..ee85761d31d 100644 --- a/src/resources/formats/html/embed/template.html +++ b/src/resources/formats/html/embed/template.html @@ -28,12 +28,15 @@ border-bottom: solid 1px; } + /* The title sits on the theme's primary background, so it inherits the + header's contrasting text color instead of the theme heading color */ #quarto-embed-header h6 { font-size: 1.1em; padding-top: 0.6em; margin-left: 1em; margin-right: 1em; font-weight: 400; + color: inherit; } #quarto-embed-header a.quarto-back-link, @@ -123,7 +126,7 @@
-