Default contrast on “Sale!” doesn’t meet accessibility guidelines
-
During accessibility testing of a WooCommerce website, the following color contrast issues were flagged.
The default background color of “Sale!” is #b3af54 – this does not meet WCAG contrast requirements. Please darken this default background color to at least a contrast ratio of 3, preferably one of 4.5.
In the “.woocommerce span.onsale” property of woocommerce.css?ver=8.1.1
Additionally the default color of the price is too light. “.woocommerce ul.products li.product .price” sets the foreground color to #b3af54 – as this is text without bold in some cases, it needs to meet the contrast ratio of 4.5.
Also, please check other woocommerce default CSS to make sure that #b3af54 doesn’t show up as the default color in other places as it is too light to contrast with the standard white background of a website.
- The topic ‘Default contrast on “Sale!” doesn’t meet accessibility guidelines’ is closed to new replies.