Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
コントラスト比の基準にある、「29px(22pt)以上」「24px(18pt)以上で太字」の場合に3:1以上という基準を、WCAG本文で示されている「18 ポイント、又は 14 ポイントの太字」の基準にあわせます。
もともとこの基準は、WCAG 2.1解説書の注釈として書かれていた、「日本語の全角文字の場合は(中略)22 ポイント又は 18 ポイントの太字を「同等な」サイズとみなすのが妥当である」という訳注の記載に揃えたものでした。
しかし、WAICでもこの訳注についての疑問点が指摘されており、WCAG 2.2解説書の当該項目 ではこの訳注は削除されています。
freeeの社内では、デザインシステムの普及により文字のコントラストや文字サイズにある程度の統制ができています。文字サイズとコントラスト比について、この基準のギリギリを攻めるような場面はほぼありません。
また、出来上がった画面に対するチェックでは、ほぼ全ての場面でコントラスト比のチェックをaxeで行っており、axeはこの日本語向けの数値を考慮してくれません。
そういった実情から、コントラスト比の基準をWCAGのものに揃えてシンプルなものにしたいです。