Skip to content

FSE - #27

Draft
shvlv wants to merge 12 commits into
mainfrom
release/fse
Draft

FSE#27
shvlv wants to merge 12 commits into
mainfrom
release/fse

Conversation

@shvlv

@shvlv shvlv commented Oct 1, 2026

Copy link
Copy Markdown

The PR accumulates changes for the FSE project.

When kadence_blocks_params says the Kadence theme runs in FSE mode and lists
the block in siteStylesBlocks, the Block Defaults panel shows a note instead
of Save / Modify / Reset, with an Edit site styles button when kadence-blocks'
kadence/site-styles store exists (the Site Editor). The store is looked up by
name, so this package doesn't depend on kadence-blocks code.
KadenceBlockDefaults returned before its hooks for non-admins and for blocks
that use site styles. The Save / Modify / Reset panel is now its own component,
so the wrapper's early returns no longer skip hooks.
Say that site styles replace Block Defaults and apply to every block of the
type without its own setting. Rename canOpen to canOpenPanel and note that
kadence-blocks registers the store only where the panel is mounted.
… note

The note uses the block's title, and in the post editor links to the block's
screen under Styles > Blocks in the Site Editor.
The control kept the last colour picked in it over its value prop, so after
Undo, a reset or a change from another control it still showed the old
colour. A value that no longer matches it now replaces it, and the opacity
follows its prop the same way.
A value that changed to a palette slug before anything was picked in the
control kept the old flag and was drawn as a literal colour.
A value that changed to a palette slug kept the old flag for one render, so
the picker drew the raw token (black) until an effect caught up. The flag now
comes from the value itself unless a colour is being picked in the control;
the effect only clears that local colour.
The resolved color.palette setting returns one origin, so a single user color in Global Styles hid the theme palette. The pop color controls and the gradient color stops now read the theme, default (when enabled) and user origins through usePaletteSwatches(), in core's order.

Adds the wp-scripts unit test harness for the pure helper.
…aults

SOFT-4745: point Block Defaults to site styles in FSE mode
Offer every palette origin in the color controls
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

# Conflicts:
#	src/inline-pop-color/index.js
#	src/single-pop-color-control/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants