coblocks icon indicating copy to clipboard operation
coblocks copied to clipboard

Color Settings should use color utility classes instead of inline styles

Open richtabor opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. We've added Color Settings panels to the core List and Quote blocks, which allow for coloring of those blocks. The current implementation simply adds an inline style with the color applied.

Describe the solution you'd like We should figure out how we could employ color classes within the save functions of those blocks, so that the color utility classes defined by the theme can properly declare the colors.

Describe alternatives you've considered Gutenberg core may eventually add coloring to other text-based blocks, though there's no real timeline/expectation there.

Additional context Screen Shot 2019-08-15 at 11 38 36 AM

richtabor avatar Aug 15 '19 15:08 richtabor

@jrtashjian @paranoia1906 Im not sure what kind of effort this would take, but it would be useful for Maverick’s color palette system to inherit color classes instead of inline styles.

richtabor avatar Aug 25 '19 13:08 richtabor

Related to https://github.com/WordPress/gutenberg/issues/8171

richtabor avatar Aug 25 '19 13:08 richtabor