some table colors do not meet contrast requirements

Đang mở
#2,827 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

The issue names no source file or test; reproduce the problem by inserting a BlockNote table and applying the listed color combinations. Locate the table text and color options, then verify that available combinations meet the 4.5:1 WCAG contrast requirement using the reported examples as regression cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

a11y
What’s broken?

This issue was identified during the Docs accessibility audit on a page containing table-related content.

Audited page:
https://docs.numerique.gouv.fr/docs/0d998bef-1b69-47ce-bd18-83d4d849c734/

Some color combinations used inside BlockNote tables do not provide enough contrast.

Examples found during the audit:

  • #E03E3E on #DDEDEA - contrast ratio: 3.53
  • #E03E3E on #FFFFFF - contrast ratio: 4.26

For normal text, the minimum expected contrast ratio is 4.5:1.

These combinations can make the content difficult to read for users with low vision or color perception difficulties.

Users with low vision may have difficulty reading the table content.

BlockNote version

0.51.4

What did you expect to happen?

Text colors used inside tables should meet the minimum contrast requirements.

For normal text, the contrast ratio should be at least 4.5:1.

The table color palette should prevent or avoid combinations that produce insufficient contrast.

Steps to reproduce

Insert a table using BlockNote.
Apply table/text colors using the available color options.
Check the contrast ratio for the following combinations:

  • #E03E3E on #DDEDEA
  • #E03E3E on #FFFFFF
    Notice that the contrast ratio is below 4.5:1.
BlockNote version

0.51.4

Additional context

This can also affect users in bright environments or users with color perception difficulties.

WCAG Criteria

WCAG 1.4.3, Contrast (Minimum)

Ngôn ngữ chính
TypeScript
Star
10.2k
Fork
772
Merge trung bình
7 ngày 21 giờ
Pull request đã merge (30 ngày)
19

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TypeCellOS/BlockNote

Tất cả issue của TypeCellOS/BlockNote

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.