Dashboard card expand button has a black icon in dark mode

Offen Anfängerfreundlich
#15,447 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
84/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
css, javascript
Bereich
frontend

Rechercherichtung

Durchsuche die Dashboard-Styles nach .bslib-full-screen-enter und überprüfe die SVG-Regel. Rendere die Reproduktionsdatei, wechsle in den Dark Mode und bewege den Mauszeiger über die Karte, um die Symbolfarbe zu prüfen. Laut Issue wird das Problem behoben, indem fill: currentcolor auf dem SVG gesetzt wird; fertig ist es, wenn das Symbol im Dark Mode der Textfarbe des Buttons folgt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

accessibility bug dark-mode dashboards
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

The expand button that appears when you hover a dashboard card draws its icon with a black fill.
In dark mode the button background is dark, so the icon is close to invisible.

Steps to reproduce
---
title: Expand button
format:
  dashboard:
    theme:
      light: default
      dark: darkly
---

## Row

::: {.card title="Card"}
Hover the card, then the expand button.
:::

Render the file, switch to dark mode with the toggle in the navbar, and hover the card.

Actual behavior

In dark mode the button text colour is rgb(255, 255, 255) and its background is rgb(45, 45, 45), but the SVG inside has fill: rgb(0, 0, 0).
The <svg> in .bslib-full-screen-enter has no fill attribute and no rule sets one, so it takes the SVG default of black.

Expected behavior

The icon follows the colour scheme, as the button border already does.
Setting fill: currentcolor on the svg in .bslib-full-screen-enter fixes it in my tests.

Your environment
  • IDE: none, terminal only.
  • OS: macOS 27.2.1 (arm64).
Quarto check output
quarto check
[✓] Checking environment information...
      Quarto cache location: /Users/mcanouil/Library/Caches/quarto
      Project: none found (single-file mode)
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.13.0: OK
      Dart Sass version 1.107.1: OK
      Deno version 2.9.8: OK
      Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
Vorherrschende Sprache
JavaScript
Sterne
6.2k
Forks
496
Ø Merge
15 Std. 47 Min.
Gemergte PRs (30 T.)
87

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quarto-dev/quarto-cli

Alle Issues in quarto-dev/quarto-cli

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.