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

オープン
#6,931 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
PHP
スター
31
フォーク
7
平均マージ
3時間 40分
マージ済み PR(30日)
813

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/blocks-engine のほかの issue

Automattic/blocks-engine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。