theme.json leaves heading and button element styles empty although both are used
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
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/blocks-engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/blocks-engine#4921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Automattic/blocks-engine#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
Automattic/blocks-engine#7505 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/blocks-engine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
HE-Arc/le-panier-du-coin#49 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LinkNacional/woo-rede#367 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responsesĐang mởcustomer report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Codeinwp/optimole-wp#1253 ·
Maintainer thường phản hồi trong vòng 1 ngày