This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Checkout step titles and descriptions show a white on white in dark themes in the editor. #7007
Labels
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
type: bug
The issue/PR concerns a confirmed bug.
type: good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
In the editor, if you have a theme with a dark background, Checkout steps title and descriptions will show white text on white background.
This issue also exists for Cart block.
This is because we're using
PlainText
component which renders a textarea with a white background, and while the text renders the correct color (white), the background is still white.How to reproduce
Expected outcome
Fields should have no background to match the final UI.
Possible fixes
One fix is to force transparent background for all of those text areas, this is a blunt quick solution. Mainly to the
.block-editor-plain-text
selector.Preferred solution is to switch to using
RichText
instead ofPlainText
. RichText can be tweaked to disble certain features like links and italic/bold text, but it will benefit from opt in to global styles like colors, sizes, and better customization, I'd love if we can spike this.The text was updated successfully, but these errors were encountered: