refactor: l-inner p-XXX__inner 併記構造に統一(U2 原則 + 原則 11 整合 + p-404 grid 分離)#189
Merged
Merged
Conversation
- PR #187(一段ネスト化)は memory feedback_component_purity_resolution.md の過剰適用だった。 l-inner と p-XXX__inner を同一要素に併記することで、名前の一致と役割上書きの両立を実現。 HTML(9 箇所): A. p-header__inner を外側 div に追加(3 ファイル) B. p-hero__inner を外側 div に追加(index.html) C. p-footer__inner を外側 div に追加(3 ファイル) D. p-cta__inner を外側 div に移動、内側 wrapper を削除(inner 役割完結のため) E. p-404__inner を外側 div に移動、内側 div を p-404__stack に変更 CSS: - p-header.css / p-hero.css / p-footer.css: __inner 空ルール追加(対応維持) - p-404.css: __inner に max-inline-size のみ残し、grid 機能を __stack に分離 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 tasks
shunei-web
added a commit
that referenced
this pull request
Apr 30, 2026
PR #189 で l-inner p-hero__inner 併記構造に変更した結果、.p-hero__inner が .p-hero の grid 直接子になったが grid-area が未設定のまま → auto-placement で .p-hero__media(grid-area: stack)と別 row に配置されヒーロー画像とテキストが 重ならないバグを修正。 feedback_component_usage_unified_principle.md 原則 9(__inner は幅制御のみ)の 明示理由付き例外として、grid-area: stack を追加。 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
概要
PR #187(l-inner 一段ネスト化)を受けた最終構造への整合。
外側 wrapper に
l-innerとp-XXX__innerを併記することで、名前一致・役割上書き可能性・Block 単独運用の三条件を同時達成する。PR #187 が誤判断だった理由
PR #187 は
memory/feedback_component_purity_resolution.mdの「Component が Layout クラスを持つのは純度違反」という判断を適用したが、これは過剰適用だった。feedback_component_usage_unified_principle.md(原則 11)は、Block 間の責任直交を前提に、l-innerとp-XXX__innerを同一要素で併記することを推奨しているl-inner p-XXX__innerとすることで、名前も一致、上書き可能性時の役割も一致」feedback_component_purity_resolution.mdに過剰適用警戒の補足追加済最終構造の設計理由(5 評価軸整合)
l-innerwrapper とp-XXX__innerElement が同一要素 → 役割説明自然体l-inner(幅制御)/p-XXX__inner(Block 固有上書き点)/p-XXX__bar/stack(内部レイアウト)で 3 層分離p-XXX__inner経由でl-innerの max-inline-size / padding 等を overrideable修正前後の構造比較
A. p-header(3 ファイル)
B. p-hero(index.html)
C. p-footer(3 ファイル)
D. p-cta(index.html)— 内側 wrapper 削除
E. p-404(404.html)— grid 機能を __stack に分離
p-404 CSS リファクタ詳細
p-404__innerに grid 機能と max-inline-size が混在していたため、l-innerとの併記に合わせて責任を分離した。理由:
l-innerがmargin-inline: auto+max-inline-sizeを持つため、p-404__innerはその上書き点(40rem 制約)のみを担い、grid 機能は内部p-404__stackに委譲するのが責任分離原則に合致する。変更対象
src/index.htmlsrc/404.htmlsrc/privacy/index.htmlsrc/assets/css/project/p-header.css__inner空ルール追加src/assets/css/project/p-hero.css__inner空ルール追加src/assets/css/project/p-footer.css__inner空ルール追加src/assets/css/project/p-404.css__innermax-inline-size 分離 +__stack新設変更なし: dead Element 9 件(
p-problem__inner/p-features__inner/p-flow__inner/p-pricing__inner/p-numbers__inner/p-voice__inner/p-faq__inner/p-contact__inner/p-privacy__inner)簡易 AR レポート
Critical(仕様違反・機能破損): 0 件
Major(品質低下): 0 件
Minor(改善候補): 0 件
p-404__stackは既存p-hero__stack/p-footer__stackと一貫したパターンpnpm run check(markuplint / stylelint / eslint)全通過pnpm run build成功(built in 70ms)参照
feedback_shunei_coding_evaluation_axis.mdfeedback_component_purity_resolution.md(PR #299 過剰適用警戒補足)feedback_component_usage_unified_principle.md(U2 原則 + 原則 11)🤖 Generated with Claude Code