Skip to content

Light/dark mode leads to low background/colour contrast tooltip #13195

@mcanouil

Description

@mcanouil

Currently the $tooltip-bg and $tooltip-colour have no contrast or insufficient one in dark mode.

The main case is quarto.org, see:

I think the issue lies in how those two variables are set, take the following example:

---
format: html
theme:
  dark:
    - cosmo
    - brand
brand: 
  color:
    background: "#333333"
    foreground: "#fafafa"
---

```python
print("Hello, World!")
```

Metadata

Metadata

Assignees

Labels

accessibilitybrand`_brand.yml`bugSomething isn't workingthemesRelated to HTML theming or any other style related issue (like highlight-style)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions