Gutenberg: Add ability to disable Color Settings on Table Block

Created on 9 Jul 2019  路  3Comments  路  Source: WordPress/gutenberg

Is your feature request related to a problem? Please describe.

Currently, I can disable both pre-defined and custom color options for paragraphs by registering an empty array for the editor-color-palette support as well as adding the disable-custom-colors "support". However, this doesn't affect table blocks (since they use a separate color set).

Describe the solution you'd like

A way鈥攅ither via theme supports, or hooking into the blocks.registerBlockType filter鈥攖o disable or replace the color options on table blocks.

Describe alternatives you've considered

Currently I can just hide the panel in CSS, but this obviously isn't an ideal solution.

Customization [Block] Table

Most helpful comment

+1

The table colour options need to be consistent with other blocks and respect add_theme_support( 'disable-custom-colors' )

Testing this on WP 5.3 RC3, these sort of consistency issues really should have been sorted out for a major release.

All 3 comments

+1

The table colour options need to be consistent with other blocks and respect add_theme_support( 'disable-custom-colors' )

Testing this on WP 5.3 RC3, these sort of consistency issues really should have been sorted out for a major release.

This is a bummer.

+1 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhenrylucero picture mhenrylucero  路  3Comments

aaronjorbin picture aaronjorbin  路  3Comments

nylen picture nylen  路  3Comments

ellatrix picture ellatrix  路  3Comments

maddisondesigns picture maddisondesigns  路  3Comments