ListBox options have poor visibility on dark backgrounds

Aperta
#1,476 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@erroreater-v ci sta già lavorando.

Dal 30/11/2026.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
frontend

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
JavaScript
Stelle
171
Fork
421
Merge medio
3g 6h
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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

Tutte le issue di RocketChat/EmbeddedChat

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.