Pre-defined background gradients on list blocks are still enabled after custom block coloring has been disabled in functions.php #32047
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Needs Testing
Needs further testing to be confirmed.
Description
After disabling custom colors in the theme's functions.php file, users are still able to select pre-defined gradient backgrounds for list blocks.
Step-by-step reproduction instructions
add_action( 'after_setup_theme', 'disable_custom_colors' );
function disable_custom_colors() {
add_theme_support( 'disable-custom-colors' );
add_theme_support( 'disable-custom-gradients' );
add_theme_support( 'editor-color-palette' );
add_theme_support( 'editor-gradient-presets', [] );
}
Expected behaviour
Coloring options for all blocks should be disabled.
Actual behaviour
Pre-defined background gradients are not disabled for list blocks.
Screenshots or screen recording (optional)
Paragraph block, colors enabled:
Paragraph block, colors disabled:
List block, colors enabled:
List block, colors disabled:
Code snippet (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: