TypeCellOS / TypeCellOS/BlockNote

Improve placeholder and side menu icon contrast for WCAG compliance

未关闭 适合新手
#2,855 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

a11y
主要语言
TypeScript
星标
10.2k
派生
772
平均合并
3 天 11 小时
30 天内合并 PR
17

描述

Discussed in https://github.com/TypeCellOS/BlockNote/discussions/2519

Originally posted by Ovgodd September 4, 2025
Is your feature request related to a problem? Please describe.
The placeholder text and side menu icons in the BlockNote editor have insufficient contrast.
This fails WCAG 2.1 requirements (minimum 4.5:1), making it harder for users with low vision.

Describe the solution you'd like
Update the placeholder text and side menu icon styles to use higher-contrast colors.
For example, switching --bn-colors-side-menu: #cfcfcf; to --bn-colors-side-menu: #2a2a2a;

Image

贡献指南

打开贡献指南

从这里开始

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

调研方向

在代码库中搜索 --bn-colors-side-menu 和编辑器占位符样式,然后检查这些颜色如何应用于侧边菜单图标和占位符文本。更新相关样式,使受影响的文本和图标满足规定的 WCAG 对比度要求,并根据 4.5:1 的目标验证结果。

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

评估

技术栈
css, typescript
领域
accessibility, frontend
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 发到你的邮箱

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