Dashboard card expand button has a black icon in dark mode

Aperta Adatta ai principianti
#15,447 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css, javascript
Ambito
frontend

Direzione di ricerca

Cerca .bslib-full-screen-enter negli stili della dashboard ed esamina la regola SVG. Esegui il rendering del file di riproduzione, passa alla modalità scura e passa il puntatore sulla scheda per verificare il colore dell’icona. L’issue segnala che impostare fill: currentcolor sull’SVG risolve il problema; il lavoro è concluso quando l’icona segue il colore del testo del pulsante in modalità scura.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
6.2k
Fork
496
Merge medio
15h 47m
PR unite (30g)
87

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.