This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Notice Component: Low text contrast when using dark theme styles #8544
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: global styles
Issues that involve styles/css/layout structure.
type: bug
The issue/PR concerns a confirmed bug.
Describe the bug
The Notice component is being imported from
@wordpress/components
and is used to communicate prominent messages to the merchant when using the Site Editor. We have some blocks making use of it, for example: the Add To Cart Form and the Related Products.When we use a dark theme style, the text color inside the Notice component becomes very light, which greatly reduces the contrast and makes the text practically illegible. I haven't investigated this problem in depth, but I believe that to compensate for the darker background used by the style, the text color of all the HTML is changed to a lighter color; however, the Notice component always has the same background color and it wouldn't be necessary to dynamically change the text color.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behavior would be for the text inside the Notice component to keep a higher contrast, even when the theme's background color is darker.
Screenshots
Example of this issue happening with Pilgrimage style on Twenty-twenty three theme:
Environment
WordPress (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: