Dashboard card expand button has a black icon in dark mode

Aberta Para iniciantes
#15,447 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
84/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
css, javascript
Domínio
frontend

Direção de pesquisa

Procure .bslib-full-screen-enter nos estilos do dashboard e inspecione a regra do SVG. Renderize o arquivo de reprodução, mude para o modo escuro e passe o cursor sobre o cartão para confirmar a cor do ícone. O issue relata que definir fill: currentcolor no SVG corrige o problema; a tarefa estará concluída quando o ícone acompanhar a cor do texto do botão no modo escuro.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
JavaScript
Estrelas
6.2k
Forks
496
Merge médio
15h 47min
PRs com merge (30d)
87

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de quarto-dev/quarto-cli

Todas as issues de quarto-dev/quarto-cli

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.