Skip to content

Give captured form action labels native ownership of their class-painted text colour - #7461

Draft
chubes4 wants to merge 3 commits into
trunkfrom
fix/issue-7227-blocks-engine-10
Draft

chubes4 wants to merge 3 commits into
trunkfrom
fix/issue-7227-blocks-engine-10

Conversation

@chubes4

@chubes4 chubes4 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Added StyleResolver::classRecipeTextColor(): returns a static colour only when a class rule on the element itself sets it with no !important, no screen-width override, no media-dependent custom property and no CSS-wide keyword; returns '' otherwise.
  • AuthoredFormControlBlockConverter now gets the label colour from that check instead of the broad inlineVisualDeclarations resolution.
  • Extended tests/unit/control-label-class-text-color.php: buttons coloured by a surrounding-element rule or a screen-width rule must not get a block colour setting. The new cases fail against the previous PR head and trunk and pass with this change.

Verification

  • acceptance=$(mktemp); bash "$IMPORT_LOOP_GATE" >"$acceptance" 2>&1 & gate=$!; (w (acceptance=$(mktemp); bash "$IMPORT_LOOP_GATE" >"$acceptance" 2>&1 & gate=$!; (while kill -0 $gate 2>/dev/null; do slee…): passed on 117aeda. Base trunk@bd2ae3a advanced to 54714bd (base_behind_by: 6; rebase onto the current base before merging). 780568 ms; retained gate evidence.
  • repro: none (no repro gate was declared, so these gates do not prove the issue).
  • CI: pending

Gate 1 output
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate acceptance running
import-loop-gate phase=bare_wp seconds=0
Document body context: 29 assertions passed
Document body context browser: 126 checks across 21 route/viewport cells passed
import-loop-gate phase=contracts seconds=1
import-loop-gate phase=merge_onto_base seconds=0
import-loop-gate phase=reimport seconds=53
{"pass":true,"own":{"before":1,"after":0},"blockers_added":[],"warnings":[],"blockers_removed":["aa680eb93279:1->0"],"new_scope":{"routes":0,"blockers":["e0097a4a7dd7:8"]},"visual_regressions":[],"visual_unmeasured":0}
import-loop-gate phase=accept seconds=726
import-loop-gate phase=bare_wp seconds=0
import-loop-gate phase=contracts seconds=1
import-loop-gate phase=merge_onto_base seconds=0
import-loop-gate phase=reimport seconds=53
import-loop-gate phase=accept seconds=726
import-loop-gate acceptance_exit=0

Cook run
  • Gate 1: tree 9025298e7f50a268bf796e0347da20a666dc4ca5

Delivery

  • Delivered: Root-cause fix confined to class-recipe-owned control colour
  • Delivered: Focused regression test
  • Not delivered: import-loop/corpus CI pass (The corpus replay is not available locally; Homeboy/CI must re-run it.)

Evidence

  • Local gate on this change: own before 1, after 0; aa680eb93279 removed; no visual regressions; pass:false only because of added blocker 574e3f36c430 (authoring_parity date on the category archive).
  • Local gate on trunk 85b9cf2 adds the same 574e3f36c430, so it comes from the local environment, not this change. The e0097a4a7dd7:8 new_scope also appears on trunk with unchanged sizes and the gate does not count it as a regression.
  • Narrow tests pass: control-label-class-text-color, native-form-action-core, control-label-native-settings, native-button-ownership, captured-icon-control-core, desktop-only-class-text-color, context-text-preset-ownership; php -l clean.
  • The import-loop/corpus job (the agency and sdnunca regressions) cannot be replayed locally. This change narrows which colours are promoted, but whether it clears those regressions is unverified until CI runs.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (pi). Model: Pi · route roadie/cook-heavy · served claude-opus-5-5. Cook time: 1h40m.

Implementation and reviewer documentation were written by the AI, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.

Closes #7227

@chubes4

chubes4 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Import loop refuted head 954bbc96: replaying the frozen capture corpus with it (static-site-importer tools/import-loop/corpus.mjs) makes other sites worse than the pass's trunk and release (baseline 0b8ad4d41d60-a1154c4eecc0):

  • sdnunca: /terms-and-conditions/@390

A fix must leave every corpus site no worse. The next pass reworks this head on its branch.

AI disclosure: posted by the import loop (Franklin, Claude Opus via Pi).

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.

editor block controls: editor_block_controls

1 participant