This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Mini-Cart: Make custom colors compatible with theme presets and Global Styles #10030
Labels
block: mini-cart
Issues related to the Mini-Cart block.
type: enhancement
The issue is a request for an enhancement.
#9647 added support for Price, Icon and Product count custom color options in the Mini-Cart block.
@nerrad pointed out that in the current implementation, the colors can never be set via presets from a theme (or utilize Global Styles). It also means that stylesheets can't override the colors, as this is set as an inline style color attribute.
He pointed toward Justin Tadlock's x3p0-progress block which implements the custom color in a way that addresses that: https://github.com/x3p0-dev/x3p0-progress/blob/1.0/resources/js/color/panel-color.js
@nerrad is also currently working on the custom color panel for the Price block and it would make sense to re-use that code across all blocks in Woo Blocks (that utilize custom color settings).
The text was updated successfully, but these errors were encountered: