quarto-dev / quarto-dev/quarto-cli

breadcrumb text color should adapt to custom title block banner text color

Open
#11,678 0 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Aug 21, 2025.

accessibility breadcrumbs enhancement html themes websites
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/11647

Originally posted by lizevons December 10, 2024

Description

Problem

I am creating a website that uses sidebar navigation with breadcrumbs. On some pages I would like to apply custom colours to the title block. I set these up in the yml header of the specific page where I would like the colours applied:

page.qmd
---
title: "Page with title-block-banner custom background"
title-block-banner: "#4097C2"
title-block-banner-color: white
---

The background colour is also applied to the breadcrumb section, however, the foreground (text colour) is not. I am not sure which css is applied to the breadcrumb text, but it seems to be the same as the body text, which is a dark colour on a light background. If you use a bright or dark banner background the breadcrumbs can be difficult to read.
Is it possible to either:

  • Change the background of the breadcrumb to match the navbar
  • Or change the text colour of the breadcrumb to match the title block banner text colour (title-block-banner-color)

The second would be my preferred option.
Here is how it renders:

image

I provide a reproducible example here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.