Repository navigation
fix(textbox): body text sits 0.07 above the AA bar at lg - #263
Merged
Merged
Conversation
The worst cell on main measured 4.57:1 — 0.07 above 4.5:1 — in the right-image layout, which is 122 of the 123 imported ornate blocks. Two levers, per the decisions on #205. The graphic drops to opacity-25, which moves only the left-image layouts; the body copy drops its own 10% transparency, which is the only lever that reaches the right-image one, whose column sits off the graphic entirely. The measured floor becomes 5.19:1 at 1024px, and every cell clears 5.19. The figures the surrounding comments carry were measured at text-white/90 and no longer hold, so they are re-measured here: the below-lg band now reads 2.57:1 at full strength and 5.54:1 faint, against a 5.77:1 ceiling set by the brown ground alone, and an un-mirrored band would put the body column at 2.50:1. Closes #205 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXxk6u2VB3jpWXYp4H
The root already paints text-white, so the body wrapper's own copy of it is inherited-equivalent and asserting it blocked a later cleanup for no contrast reason. The contract is that the body copy carries no alpha. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXxk6u2VB3jpWXYp4H
sydevs-bot
marked this pull request as ready for review
November 18, 2026 21:00
sydevs-bot
enabled auto-merge
November 18, 2026 21:00
Contributor
Author
|
Adversarial review skipped: 2 file(s), 34 changed line(s), under 🤖 sydevs dispatcher |
Ardnived
approved these changes
Nov 18, 2026
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This was referenced Nov 18, 2026
sydevs-bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
`order-*` moved the header above the image for the eye and never for a screen reader, which reads source order: image alt, then title, subtitle, body. The float forced that split, because a float only moves what follows it, so the header could only share the text column by coming after the image. Two grid columns remove the choice. Source order is title, subtitle, image, body, and it is the reading order at every width — below `lg` as ordinary block flow, at `lg` as explicit row and column placement. Placement is explicit because auto-placement would follow source order, which is the one thing this layout must not do. The composition is unchanged: measured at the seven widths, every title clears 3:1, every subtitle 4.5:1 and every body cell the 5.19:1 floor #263 set, reproducing the float's figures. At 1440px the header is 391px wide, the body column's own width, and at 390px the painted order is title, subtitle, image, body with the header at the full content width. Answers the reading-order question thread on #269 — option C (Ardnived). Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWeWiKL7xNtsm4C7Pt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OrnateTextBoxbody copy measured 4.57:1 at its worst. It now measures 5.19:1, in both layouts.text-white/90; re-measured here.Change outline
Three stacked layers paint the backdrop behind the body column. Which one a layout's body sits over decides which lever can move it, and that is why the fix needs two.
Preview
Both Cloudflare previews build from this push; neither alias exists yet, so the links are pending. The Ladle playground is where this is visible — story
organisms--ornate-text-box, at/?story=organisms--ornate-text-box, all four sections.organisms--ornate-text-box— the two left-image sections move, the right-image one moves only with the body-copy change — preview pendingTest results
pnpm lint,tsc --noEmit,pnpm test:run(114 files, 1091 tests)components/organisms/OrnateTextBoxandlayouts/tailwind.test.tssecurityReview.triggerPatternManual verification
opacity-25, not as a blank ground.Notes for reviewer
text-whiteon the body wrapper is inherited-equivalent — the root at:132already paints white, so the change that matters is dropping/90. Kept the explicit token because the subtitle and sidetext each spell their own, and it is the spelling decision 2A names. The test pins the absence of alpha rather than the token, so the cleanup stays open; fix(textbox): the OrnateTextBox header fails AA over the warm band #262 proposes it.classesFor(html, token)helper fortests/_helpers/markup.ts. Ten-plus call sites across four files already hand-roll it; collapsing them is its own change, not this one's.Measured before and after, per width and alignment
Method: headless Chromium,
deviceScaleFactor1, viewport height 800,pnpm ladle:buildserved statically, storyorganisms--ornate-text-boxat?mode=preview, body text hidden, full-page capture, 50 columns × 13 rows sampled per paragraph over 120 characters, the body colour composited over each sample, worst taken. This reproduces #205's "shipped" column exactly at all seven widths, which is what says the two runs measure the same thing.s0, s2, s3 are the left-image layout. s1 is the right-image layout — 122 of the 123 imported ornate blocks.
Body copy,
opacity-40+text-white/90→opacity-25+text-white:Worst cell: 4.57 → 5.19, both at 1024 in the right-image layout. Every cell clears 5.19.
Sidetext,
text-white/75, unchanged by the diff but lifted by the fainter graphic. Bar is 3:1:Below
lg, where the body column is full-width and crosses the faint band:The four figures the comments carry, re-measured at
text-white: the band belowlgreads 2.57:1 at full strength and 5.54:1 faint, against a 5.77:1 ceiling from the brown ground alone, and an un-mirrored band would put the body column at 2.50:1. Each was measured by overriding the one declaration involved, so no step needed a rebuild.Closes #205
🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjXxk6u2VB3jpWXYp4H