RichText Text Color formatting option still available with empty color palette #20205
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
In version 7.5, if I "register" an empty color palette and "disable-custom-colors" via
add_theme_support
, the new Text Color formatting option added by #16014 will still show, with an empty popover.To reproduce
Steps to reproduce the behavior:
after_theme_setup
hook:Expected behavior
The Text Color option should be removed entirely. I can work around this via
unregisterFormatType
, but it should not be necessary and instead follow the pattern now present in the "Background & Text Color" panel on paragraphs/buttons/etc when no preset or custom colors/gradients are available.Screenshots
Additional context
The text was updated successfully, but these errors were encountered: