Skip to content

fix: suppress inherited defaults on shared layout members#340

Merged
markdumay merged 1 commit into
mainfrom
fix/illustration-width-default
Jul 13, 2026
Merged

fix: suppress inherited defaults on shared layout members#340
markdumay merged 1 commit into
mainfrom
fix/illustration-width-default

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Visual-review outcome from validating the v6 generation against gethinode.com's block/component library: global argument defaults leak into shared type members and override downstream fallbacks that expect absence (v5 semantics). Suppresses eight members via explicit nil defaults (heading.width, illustration.width/justify, links.outline/order, styles.width/orientation/portrait), each with a rationale comment. Goldens 13/13 green; verified against production markup plus a 59-page structural sweep (classes and data attributes).

Note: merge gethinode/mod-blocks#150 first — it restores mod-blocks' local hero width fallback that this suppression would otherwise expose.

🤖 Generated with Claude Code

The global argument defaults leak into shared user-defined types once
v6 applies nested member defaults, overriding downstream fallbacks
that expect absence (v5 semantics). Suppressed via explicit nil
defaults, with per-member rationale comments:

heading.width and illustration.width (text-column default shrinks
images and compounds with section widths), illustration.justify and
links.outline plus links.order (downstream partials layer their own
defaults, e.g. download buttons render outlined by design), and the
styles member overrides width, orientation, and portrait (per-style
values must fall back to card-group context).

Verified against production markup for about, heading, hero,
featured, and video-message pages plus a 59-page structural sweep.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@markdumay markdumay merged commit dadf68b into main Jul 13, 2026
11 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 6.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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