ListBox options have poor visibility on dark backgrounds

未关闭
#1,476 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@erroreater-v 已经在做这个了。

开始于 2026年11月30日。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, react
领域
frontend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
JavaScript
星标
171
派生
421
平均合并
3 天 6 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RocketChat/EmbeddedChat 的其他 Issue

查看 RocketChat/EmbeddedChat 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。