AdvancedCustomFields / AdvancedCustomFields/acf

Feature request: Support WP colors for text + background

Open
#602 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

There is one feature I'm really missing when developing blocks with ACF and that's the ability to use WordPress/Gutenberg's color controls. I would like to be able to choose text color and background color and have ACF to output "has-[primary]-color" and "has-[primary]-background-color" the same way as ACF block already supports alignments.

Is this something you have planned for a future version?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing ACF block alignment support mentioned in the issue and identify where its class output is implemented. Review how WordPress/Gutenberg color controls are represented, then verify that text and background selections produce the requested has-[primary]-color and has-[primary]-background-color classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.