ListBox options have poor visibility on dark backgrounds

Đang mở
#1,476 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@erroreater-v đang làm issue này rồi.

Từ ngày 30/11/2026.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
171
Fork
421
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RocketChat/EmbeddedChat

Tất cả issue của RocketChat/EmbeddedChat

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.