You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Color contrast failure when core pattern is placed #46
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended
As part of the accessibility-ready testing, 'sufficient color contrast of text and UI controls', we need to test the theme with the patterns that are added by WordPress core.
Thanks for this, @yusuf-saif—great first PR, and welcome!
I dug into why the pattern breaks: its white link color uses a legacy serialization ("color":{"link":"#ffffff"}) that current WordPress silently ignores, so the titles’ links fall back to the theme’s near-black link color on the black ground. That’s really a core bug in the bundled pattern—worth reporting upstream if someone wants to pick it up.
I believe there is a nicer fix than removing the pattern: unregister core’s copy and re-register the same slug with the color attributes stripped. Without hardcoded colors, the pattern inherits each style variation’s ground and ink, with readable links everywhere. Would you like to update the PR in that direction? Parse the blocks and unset style.color rather than regex, keep core's title/description/categories on re-registration, and fall back to a plain unregister if the transformed content still contains a hardcoded color.
On the black/white palette additions: @carolinan is right, and I verified it on a running site—core outputs the default palette's variables and class rules on every page even with defaultPalette off, so those presets already resolve in Ipsum. Please drop that part either way; I'd like to keep the palettes at their six roles.
This was fixed upstream in core: r64579 (#66201, 19 Oct) moved the Post Title link colour in core/query-large-title-posts from the legacy style.color.link to style.elements.link.color.text, which is the cause @henriqueiamarino identified.
Verified on WordPress 7.2-beta1 with Ipsum trunk: the "Large title" pattern now shows white titles on the black background, both on the front end and in the block editor, with and without Gutenberg 24.2 active.
Front end
Editor
Since the fix is only in 7.2, the theme-side workaround is still needed only if Ipsum keeps supporting 7.1. Once #160 (Require WordPress 7.2) is merged, this issue can probably be closed without a theme change.
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended
Activity
henriqueiamarino commentedon Sep 21, 2026
Thanks for this, @yusuf-saif—great first PR, and welcome!
I dug into why the pattern breaks: its white link color uses a legacy serialization (
"color":{"link":"#ffffff"}) that current WordPress silently ignores, so the titles’ links fall back to the theme’s near-black link color on the black ground. That’s really a core bug in the bundled pattern—worth reporting upstream if someone wants to pick it up.I believe there is a nicer fix than removing the pattern: unregister core’s copy and re-register the same slug with the color attributes stripped. Without hardcoded colors, the pattern inherits each style variation’s ground and ink, with readable links everywhere. Would you like to update the PR in that direction? Parse the blocks and unset
style.colorrather than regex, keep core's title/description/categories on re-registration, and fall back to a plain unregister if the transformed content still contains a hardcoded color.On the black/white palette additions: @carolinan is right, and I verified it on a running site—core outputs the default palette's variables and class rules on every page even with
defaultPaletteoff, so those presets already resolve in Ipsum. Please drop that part either way; I'd like to keep the palettes at their six roles.rvpatel commentedon Oct 22, 2026
This was fixed upstream in core: r64579 (#66201, 19 Oct) moved the Post Title link colour in
core/query-large-title-postsfrom the legacystyle.color.linktostyle.elements.link.color.text, which is the cause @henriqueiamarino identified.Verified on WordPress 7.2-beta1 with Ipsum trunk: the "Large title" pattern now shows white titles on the black background, both on the front end and in the block editor, with and without Gutenberg 24.2 active.
Since the fix is only in 7.2, the theme-side workaround is still needed only if Ipsum keeps supporting 7.1. Once #160 (Require WordPress 7.2) is merged, this issue can probably be closed without a theme change.