ListBox options have poor visibility on dark backgrounds

Aberta
#1,476 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@erroreater-v já está trabalhando nisso.

Desde 30/11/2026.

Avaliação

Dificuldade
1/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript, react
Domínio
frontend

Direção de pesquisa

Start with ListBox.styles.js and inspect the main ListBox container style and its theme values. Reproduce the issue in the MultiSelect Storybook story with a dark canvas, then verify that all options remain readable when the dropdown is open and the cursor is away. The issue says a local fix has already been implemented; check the thread before starting to see whether work is underway.

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

Descrição

bug

Description

The ListBox component lacks a solid default background. When displayed over a dark background, non-highlighted options become difficult to read. Hovering over an option temporarily improves its visibility.

Steps to reproduce

  1. Open the MultiSelect component in the UI Elements Storybook.

  2. Change the Storybook canvas background to dark.

  3. Open the dropdown.

  4. Move the cursor away from the options.

Expected behavior

All dropdown options should remain clearly readable regardless of the surrounding background or hover state.

Actual behavior

Non-highlighted options have a transparent background, resulting in poor text visibility on dark backgrounds.

Root cause

The main style in ListBox.styles.js does not define a background color.

Proposed solution

Add a theme-based background color using theme.colors.background to the ListBox container instead of hardcoding a color.

Testing

The proposed fix was tested locally using Storybook on Windows, and the dropdown options were visibly more readable

SCREENSHOTS

before->

image

after->

image

Additional information

I have implemented a proposed fix locally and would like to contribute it if approved by the maintainers.
I reproduced the issue and tested the proposed fix locally using Storybook, with AI assistance during debugging and implementation.

Linguagem predominante
JavaScript
Estrelas
171
Forks
421
Merge médio
3d 6h
PRs com merge (30d)
4

Preparar o ambiente

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

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 RocketChat/EmbeddedChat

Todas as issues de RocketChat/EmbeddedChat

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.