[6.x]: Colored chips: link blue has low contrast on tinted backgrounds
维护者通常 1 天内回复
@brandonkelly 已经在做这个了。
开始于 2026年10月15日。
评估
这个 Issue 还没有评估数据。
描述
What happened?
Description
Link text in Craft 6 alpha is blue on purpose, so links can be told apart from surrounding text. That works in general, but not on colored chips. The label is a link sitting on a tinted background, and on several colors (pink, orange, green, yellow) contrast falls below the 4.5:1 minimum for WCAG 1.4.3. The blue and lavender chips are weak too, since the text is close to the background hue.
Steps to reproduce
- Create entry types with different colors and icons
- View them in
settings->entry types - Compare the label color to the chip background
Expected
Chip labels keep a clear link treatment but reach 4.5:1 on every chip color, in light and dark mode. For example, a darker blue per chip color, or the dark icon shade plus an underline.
Actual
The default link blue is used on every chip color, and on several of them the contrast against the tinted background is below the 4.5:1 minimum.
Screenshot attached.
Craft CMS version
Craft 6.x-dev
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- 主要语言
- PHP
- 星标
- 3.6k
- 派生
- 708
- 平均合并
- 11 小时
- 30 天内合并 PR
- 273
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
craftcms/cms 的其他 Issue
-
bug repo:cms
难度 3/5 1-2 天 新手友好度 62/100
维护者通常 1 天内回复
-
[6.x]: Text in some input fields is clipped at the bottom on Windows可能已有人在做 @brianjhanson 于 10 天前认领。 未关闭bug repo:cms
craftcms/cms#19928 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug repo:cms
难度 4/5 3-5 天 新手友好度 15/100
维护者通常 1 天内回复
-
[6.x]: AdminTable not available for plugin index and settings screens可能已有人在做 @brianjhanson 于 11 天前认领。 未关闭bug repo:cms
craftcms/cms#19912 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[6.x]: No way for custom element types to add top level buttons in toolbar or beside the Save menu可能已有人在做 @brianjhanson 于 11 天前认领。 未关闭bug repo:cms
难度 5/5 一周以上 新手友好度 15/100
craftcms/cms#19910 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
grokability/snipe-it#19869 · 2 条评论 ·
维护者通常 1 天内回复
-
sync-en
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1 小时以内 新手友好度 77/100
维护者通常 3 天内回复
-
Перевод устарел
难度 1/5 1 小时以内 新手友好度 74/100