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

Đang mở
#6,931 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
31
Fork
7
Merge trung bình
3 giờ 40 phút
Pull request đã merge (30 ngày)
813

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Automattic/blocks-engine

Tất cả issue của Automattic/blocks-engine

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.