ListBox options have poor visibility on dark backgrounds

Open
#1,476 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@erroreater-v is already working on this.

Since Nov 30, 2026.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react
Domain
frontend

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
171
Forks
421
Avg merge
3d 6h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/EmbeddedChat

All issues in RocketChat/EmbeddedChat

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.