Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cderv opened this issue Dec 13, 2024 · 0 comments
Open
Labels
enhancement New feature or request html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style) websites Issues creating websites
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Dec 13, 2024

Discussed in #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

@cderv cderv added enhancement New feature or request html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style) websites Issues creating websites labels Dec 13, 2024
@cderv cderv added this to the Future milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style) websites Issues creating websites
Projects
None yet
Development

No branches or pull requests

1 participant