Skip to content

a11y: dark-mode vs light-mode button violates axe-core #13463

Description

@cscheid

Using our own feature:

---
title: Testing Quarto's accessibility checker
format:
  html: 
    axe:
      output: document
brand:
  dark:
    color: 
      foreground: '#fff'
      background: '#333'
  light:
    color: 
      background: '#fff'
      foreground: '#000'
---

This violates contrast rules: [insufficient contrast.]{style="color: #eee"}.

Output:

Image

Metadata

Metadata

Assignees

Labels

accessibilitybugSomething isn't workingdark-modedark mode and switching between light and dark modes

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions