【Lighthouse】Background and foreground colors do not have a sufficient contrast ratio.が出た時の解決策
1395 ワード
事象
Lighthouse AccessibilityでBackground and foreground colors do not have a sufficient contrast ratio.が出た時の対処法
解決策
背景色と前景色のコントラスト比が十分でない(直訳)と怒られてますので、適切なcolorに変えます。
手順
1.chormeのdeveloperツールを開き、該当タグのcolorの四角(赤枠)をクリックします。
3.適切なcolor(コントラスト比4.5以上)を選択します。
以上で修正終了です。
コントラスト比に注意しよう
コントラスト比を意識してデザインしてもらってます。
ですが、予想以上に注意しないといけない点でした。今後もより良いプロダクトを目指してチームで話し合っていきます。
参考記事
Author And Source
この問題について(【Lighthouse】Background and foreground colors do not have a sufficient contrast ratio.が出た時の解決策), 我々は、より多くの情報をここで見つけました https://qiita.com/nevius5829/items/3d724374ba11b72e0f14著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .