theme.json leaves heading and button element styles empty although both are used

Aperta
#6,931 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start by locating the block theme scorecard's theme_json check and the code that projects source styles into theme.json; the issue names no files or tests. Compare how links are handled with headings and buttons, including heading levels where their styles differ. Done means consistent source typography or colour appears under styles.elements.heading or styles.elements.button, with distinct h1–h6 styles preserved.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Found importing https://javisantana.com/ (a ~750-page static blog) with WordPress Studio CLI 2.2.0 and the Data Liberation Agent / Static Site Importer / Blocks Engine releases current on 2026-11-19, before blocks-engine#6890, #6909, #6912 and #6914 merged.

Problem

The block theme scorecard's theme_json check fails: elements.button and elements.heading are used on the site but have no styles in theme.json. Only elements.link is styled, so changing headings or buttons in Global Styles doesn't reach them.

"theme_json": { "elements": { "link": {"used": true, "styled": true}, "button": {"used": true, "styled": false}, "heading": {"used": true, "styled": false} }, "block_style_count": 0, "status": "fail" }

Expected

When source headings or buttons share consistent typography or colour, they are projected as styles.elements.heading / styles.elements.button (and h1–h6 where they differ).

🤖 Generated with Claude Code

Lingua principale
PHP
Stelle
29
Fork
6
Merge medio
3h 40m
PR unite (30g)
813

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/blocks-engine

Tutte le issue di Automattic/blocks-engine

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.