Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[6.x]: Colored chips: link blue has low contrast on tinted backgrounds

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

维护者通常 1 天内回复

@brandonkelly 已经在做这个了。

开始于 2026年10月15日。

评估

这个 Issue 还没有评估数据。

描述

bug repo:cms
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
  1. Create entry types with different colors and icons
  2. View them in settings->entry types
  3. 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.

Image
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 模板
  • 阅读贡献指南

从这里开始

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

craftcms/cms 的其他 Issue

查看 craftcms/cms 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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