Dashboard card expand button has a black icon in dark mode

Abierto Apto para principiantes
#15,447 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
css, javascript
Área
frontend

Línea de trabajo

Busca .bslib-full-screen-enter en los estilos del dashboard e inspecciona la regla del SVG. Renderiza el archivo de reproducción, cambia al modo oscuro y pasa el cursor sobre la tarjeta para confirmar el color del icono. El issue indica que se soluciona estableciendo fill: currentcolor en el SVG; estará listo cuando el icono siga el color del texto del botón en modo oscuro.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
JavaScript
Estrellas
6.2k
Forks
496
Merge medio
15 h 47 min
PR fusionados (30 d)
87

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quarto-dev/quarto-cli

Todos los issues de quarto-dev/quarto-cli

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.