Environment banner text hardcoded to white, unreadable on light banner colours
维护者通常 1 天内回复
@AAshGray 已经在做这个了。
开始于 2026年5月26日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 64/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- react, typescript
调研方向
从 frontend/web/components/ButterBar.tsx 开始,尤其关注第 73-85 行,并使用环境设置中的浅色 banner_colour 重新实现该横幅。将硬编码的白色文本行为替换为根据背景派生出的可读颜色,然后验证该横幅在所列环境页面的浅色和深色背景上都保持清晰可读。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
The environment banner (the "butter bar" shown when banner_text is configured on an environment) renders its text in hardcoded white. When the chosen banner_colour is light, the text becomes effectively invisible against the background.
To reproduce
- Open an environment's settings
- Enable the banner and set
banner_text(e.g.Production [Be Careful!]) - Navigate to any page in that environment (Features, Segments, etc.)
The banner renders white-on-light and is unreadable.
Expected behaviour
The banner text should remain legible regardless of the chosen banner_colour. Text color should be derived from the background.
Affected code
frontend/web/components/ButterBar.tsx lines 73-85 hardcode color: 'white':
Screenshots
Will attach after issue creation (a banner with a pale cream banner_colour showing white text that is barely visible)
- 主要语言
- Python
- 星标
- 9.9k
- 派生
- 658
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 171
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Flagsmith/flagsmith 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Flagsmith/flagsmith#9119 · 1 条评论 ·
维护者通常 1 天内回复
-
Fix Button Alignment in SDK Installation Section可能已有人在做 @manueldezman 于 4 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 62/100
Flagsmith/flagsmith#9056 · 2 条评论 ·
维护者通常 1 天内回复
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance可能已有人在做 @jcd1991 于 5 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 75/100
Flagsmith/flagsmith#9045 · 1 条评论 ·
维护者通常 1 天内回复
-
Expose whether an organisation is blocked for API usage可能已有人在做 @PiUnknown 于 39 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
Flagsmith/flagsmith#8773 · 1 条评论 ·
维护者通常 1 天内回复
查看 Flagsmith/flagsmith 的全部 Issue
相似的 Issue
-
documentation good first issue help wanted
难度 1/5 1 小时以内 新手友好度 90/100
-
documentation good first issue help wanted
难度 1/5 1 小时以内 新手友好度 88/100
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 72/100
collabnix/awesome-mcp-lists#490 ·
维护者通常 2 天内回复