AdvancedCustomFields / AdvancedCustomFields/acf

ACF 5.8.0-beta4: Bring back the is-edit is-preview classes

Open
#146 1 comment 0 reactions 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

In ACF 5.8.0-beta3, ACF Gutenberg blocks had either .is-preview or .is-edit, depending on which mode the block was in, unfortunately these have been removed in ACF 5.8.0-beta4.

Can you bring these classes back please? Being able to specifically target fields within the main Gutenberg editor is very valuable, particularly when styling the editor to match the front-end.

These classes allow you to target either the ACF fields themselves or the preview content, without affecting the other.

Thanks.

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

No file, test, or entry point is named. Start by locating where ACF Gutenberg block mode classes are generated and compare the beta3 and beta4 behavior. Done means the .is-preview and .is-edit classes are available again for their respective modes without affecting the other mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.