Skip to content

Conversation

@MlKilderkin
Copy link
Contributor

@MlKilderkin MlKilderkin commented Oct 22, 2025

What does this do/fix?

Introduce a new custom ACF field type Color Picker (color_picker_tribe) to the plugin.
This adds:

  • A new field class to register a palette of named colors (slug - hex) and default value support.
  • A render class to display those colors as selectable swatches in the ACF editor.
  • Supporting JS / CSS in the theme to handle selection UI in the ACF editor side for meta fields.

What’s included

  • wp-content/plugins/core/src/Integrations/ACF_Fields/Color_Picker/Color_Picker.php - defines the ACF field type, with fluent colors() setter and default palette extraction.
  • wp-content/plugins/core/src/Integrations/ACF_Fields/Color_Picker/Color_Picker_Render.php - the rendering logic for the field in the admin (shows swatches, builds hidden input).
  • wp-content/themes/core/assets/js/editor/color-picker/index.js - add wrapper for DynamicColorPicker and pass data from ACF to Gutenberg component

QA

Links to relevant issues

Screenshots/video:

Copy link
Contributor

@GeoffDusome GeoffDusome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going to want a FE dev to go through this when you're ready to clean up the JS & CSS, but this is a good start to a swatch picker. Let me know when it's done and I'll take another look!

@MlKilderkin MlKilderkin marked this pull request as ready for review November 7, 2025 15:15
Copy link
Contributor

@GeoffDusome GeoffDusome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Just one note from me - looks good otherwise. It's insane to me that you were able to utilize my Dynamic Color Picker to render ACF options but here we are. Amazing work 🌮

@MlKilderkin MlKilderkin added the Launch Environment Deploys to dokku label Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants