Skip to content

fix: meet contrast on video-message message titles - #171

Merged
markdumay merged 1 commit into
mainfrom
fix/video-message-title-contrast
Jul 19, 2026
Merged

fix: meet contrast on video-message message titles#171
markdumay merged 1 commit into
mainfrom
fix/video-message-title-contrast

Conversation

@markdumay

Copy link
Copy Markdown
Contributor

What

Surfaced by the Hinode component-library Lighthouse sweep (pairs with gethinode/hinode#2066).

The video-message block renders its message cards with the muted card-icon-secondary treatment, so the card title inherits --bs-secondary (#6c757d). Because the section itself is bg-body-tertiary (#f8f9fa), the title text lands at 4.44:1 — just under the WCAG 4.5:1 threshold (color-contrast).

Fix: render the message title in the body colour so it's readable; the icon keeps its --bs-secondary accent (icons only need 3:1). Scoped to .video-message, so no other block changes.

Verification

Rebuilt the Hinode exampleSite with this branch swapped in (module replacement) and re-audited /en/docs/blocks/video-message/: accessibility 93 → 100, color-contrast now passes.

🤖 Generated with Claude Code

The message cards use the muted 'card-icon-secondary' treatment, so the title inherits
--bs-secondary; on the section's bg-body-tertiary background that grey is only 4.44:1, failing
WCAG color-contrast. Render the message title in the body colour (the icon keeps its accent),
which restores readable, accessible titles. Surfaced by the component-library Lighthouse sweep.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@markdumay
markdumay merged commit c25f260 into main Jul 19, 2026
8 checks passed
@markdumay

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 2.2.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

markdumay added a commit to gethinode/hinode that referenced this pull request Jul 19, 2026
….15.5

Pulls the paired accessibility fixes into the exampleSite demos: mod-blocks v2.2.6
(gethinode/mod-blocks#171, video-message message-title contrast) and mod-docs v1.15.5
(gethinode/mod-docs#124, button demo labels + outline colours). With this repo's own
button.html change, /en/docs/blocks/video-message and /en/docs/components/button both
score accessibility 100 with no failing audits.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
markdumay added a commit to gethinode/hinode that referenced this pull request Jul 19, 2026
….15.5

Pulls the paired accessibility fixes into the exampleSite demos: mod-blocks v2.2.6
(gethinode/mod-blocks#171, video-message message-title contrast) and mod-docs v1.15.5
(gethinode/mod-docs#124, button demo labels + outline colours). With this repo's own
button.html change, /en/docs/blocks/video-message and /en/docs/components/button both
score accessibility 100 with no failing audits.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant