Skip to content

Disable custom colors does not works #47642

@chyvak1831

Description

@chyvak1831

Description

I'm trying disable custom colors
Screenshot_1

According to official docs it's possible to do using this settings

{
  "$schema": "https://schemas.wp.org/trunk/theme.json",
  "version": 2,
  "settings": {
    "color": {
      "custom": false
    }
  }
}

But it does not works for me, Custom color picker still displays and available to setup in wordpress admin.

Step-by-step reproduction instructions

  1. goto Appearance-> Editor
  2. then select for example Edit for single template (or any other template)
    image
  3. goto Styles
    image
  4. goto Colors
    image
  5. goto Palette
    image
  6. Custom section still here
    image

Why this is incorrect? Because if we use similar key to disable Default Colors - it will be hidden in this global settings
image

Screenshots, screen recording, code snippet

No response

Environment info

WordPress: Version 6.1.1
Theme: Twenty Twenty-Three Version: 1.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] ColorsColor management[Type] QuestionQuestions about the design or development of the editor.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions