Rule-based glyph error outline is hue-only; red status text below 4.5:1 (#1605 audit D4, S8)

オープン
#2,140 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
accessibility

調査の方向性

Start with the accessible error-text color added to GuiConstants by the #1605 remediation, then replace Color.red in StructureMappingTableRenderer, MathOverridesPanel, MultiPurposeTextPanel, DefaultScrollTableCellRenderer:126, DefineROI_SummaryPanel and NumericsTestCellRenderer. For D4, edit the error-state outline branch in vcell-core/.../cbit/vcell/graph/MolecularTypeLargeShape.java (lines ~666-690) so error differs by stroke width or a glyph, not only Color.red.darker(). Done when the rg command in Acceptance returns no matches and the outline check passes; optionally read docs/accessibility/color-audit.md (branch docs/1605-color-audit) for rows D4/S8.

索引モデルが issue の本文から書いたものです。

説明

Accessibility Requirement Java-based User Interface

Follow-up from the #1605 color audit, rows D4 and S8 (docs/accessibility/color-audit.md). These are smaller findings the audit surfaced outside the model and results viewer remediation.

D4: error outline on rule-based molecule glyphs is hue-only. In vcell-core/.../cbit/vcell/graph/MolecularTypeLargeShape.java (around lines 666–690), a molecule with errors is outlined in Color.red.darker() instead of dark gray: 1.43:1 between the two outlines. The same error is listed with an icon in the issue tables, but on the glyph itself only hue changes. Fix: a thicker or dashed outline, or an error glyph, for error state.

S8: red status text below 4.5:1 (WCAG 1.4.3). Each of these already states its meaning in words or bold, so WCAG 1.4.1 is met, but Color.red is 4.00:1 on white and 3.45:1 on #eeeeee:

  • StructureMappingTableRenderer ("Unmapped")
  • MathOverridesPanel ("remove unused parameter overrides" button text)
  • MultiPurposeTextPanel (error line, bold)
  • DefaultScrollTableCellRenderer:126 (changed network-constraint value, bold)
  • DefineROI_SummaryPanel
  • NumericsTestCellRenderer (internal test UI)

Fix: switch them to the accessible error-text color added to GuiConstants by the #1605 remediation.

Acceptance.

  • rg -n "setForeground\((java\.awt\.)?Color\.(red|RED)\)" --type java returns no matches in these files.
  • The D4 error state differs from normal by stroke or glyph, not only hue.

Part of #1603.

主要言語
Java
スター
140
フォーク
35
平均マージ
22時間 6分
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

virtualcell/vcell のほかの issue

virtualcell/vcell の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。