File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,21 +13,21 @@ import { Title } from '/src/components/Title';
1313コントラスト比が低いと、文字が読みにくくなります。特にロービジョンや老眼によって見づらさを抱えている人にとっては、大きな障害となります。
1414
1515<ExampleContainer >
16- <p style = { { padding: ' 0.25rem 0.75rem' , background: ' #fff' , color: ' #323232' }} >
16+ <div style = { { padding: ' 0.25rem 0.75rem' , background: ' #fff' , color: ' #323232' }} >
1717 明るい背景色の上では、
1818 <span style = { {color: ' #fff0d2' }} >明るい色の文字</span >
1919 は見づらくなります。
20- </p >
20+ </div >
2121
22- <p style = { {padding: ' 0.25rem 0.75rem' , background: ' #464343' , color: ' #fff' }} >
22+ <div style = { {padding: ' 0.25rem 0.75rem' , background: ' #464343' , color: ' #fff' }} >
2323 暗い背景色の上では、
2424 <span style = { {color: ' #5a5a5a' }} >暗い色の文字</span >
2525 は見づらくなります。
26- </p >
26+ </div >
2727</ExampleContainer >
2828
2929freee のガイドラインでは、テキストについて 4.5:1 以上のコントラスト比を満たすことを求めています([ コントラスト比の確保] ( https://a11y-guidelines.freee.co.jp/categories/text.html#gl-text-contrast ) )。
30- サイズの大きいテキストについては 3:1 以上でも良いことになっていますが、できるだけ 4.5:1 以上を目指すようにしましょう 。
30+ サイズの大きいテキストについては 3:1 以上でも良いことになっていますが、できるだけ 4.5:1 またはそれ以上を目指すようにしましょう 。
3131
3232コントラスト比は、[ WebAIM Contrast Checker] ( https://webaim.org/resources/contrastchecker/ ) で確認することができます。
3333Background Color(背景色)と Foreground Color(前景色)それぞれにカラーコードを入力するか、カラーピッカーを使って色を選択すると、Contrast Ratio の欄にコントラスト比が表示されます。
You can’t perform that action at this time.
0 commit comments