#66201 closed defect (bug) (fixed)
Patterns: Post title link color in "Large title" pattern renders invisible in some themes
| Reported by: | sakshamsharma5 | Owned by: | mikachan |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Editor | Version: | trunk |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When inserting the Core pattern "Large title" (core/query-large-title-posts), post title links render invisible (dark text on a #000000 background) in themes like Twenty Twenty-Four, Twenty Twenty-Two and Ipsum.
This happens because the Post Title block within the pattern uses the legacy/unsupported syntax "color": { "link": "#ffffff" } instead of the Elements API ("elements": { "link": { "color": { "text": "#ffffff" } } }). As a result, the link color is ignored and falls back to theme defaults.
Steps to Reproduce
- Activate one of the following themes: Twenty Twenty-Four, Twenty Twenty-Two or Ipsum .
- Create a new post or page.
- Insert the pattern: Patterns > Posts > Large title.
- Notice that the post title links are not visible against the black background.
Expected Behavior
Post title links should render white (#ffffff) as intended by the pattern.
Change History (4)
This ticket was mentioned in PR #13793 on WordPress/wordpress-develop by @sakshamsharma5.
7 weeks ago
#1
- Keywords has-patch added
Description
Fixes an issue where post title links in the Core pattern "Large title" (
core/query-large-title-posts) blend into the#000000background in themes like Twenty Twenty-Four, Twenty Twenty-Two and Ipsum.Updates the Post Title block attributes to use the Elements API (
"elements": { "link": { "color": { "text": "#ffffff" } } }) instead of the obsolete"color": { "link": "#ffffff" }.Trac ticket: https://core.trac.wordpress.org/ticket/66201
Use of AI Tools
AI assistance: Yes
Tool(s): Antigravity
Model(s): Gemini
Used for: Diagnosing and identifying the root cause; final implementation and tests were reviewed and edited by me.