Skip to content

fix(starter): 公開 API 名 --l-section-padding-* → --section-padding-* に revert(spec L695 準拠)#181

Merged
shunei-web merged 1 commit into
v1.2from
feature/revert-l-section-prefix
Apr 29, 2026
Merged

fix(starter): 公開 API 名 --l-section-padding-* → --section-padding-* に revert(spec L695 準拠)#181
shunei-web merged 1 commit into
v1.2from
feature/revert-l-section-prefix

Conversation

@shunei-web
Copy link
Copy Markdown
Collaborator

目的

PR #180 で変更した公開 API 名 --l-section-padding-min/max--section-padding-min/max に戻す。

spec §6 L695「公開 API は --{対象}-{名前}{対象} は Block 名からプレフィックス(l-/c-/p-)除外」原則に違反していたため。

修正内容

ファイル 変更内容
l-section.css コメント + var() 参照: --l-section-padding-*--section-padding-*
p-cta.css override 変数名: --l-section-padding-*--section-padding-*
p-numbers.css 同上
p-problem.css 同上

Block 冒頭 --_padding-min/max の private alias 構造(Z パターン)は維持。

確認

  • grep -rn "l-section-padding" src/: 修正前 10件 → 修正後 0件
  • stylelint: エラーなし
  • build: ✓ built in 267ms

spec 根拠

  • spec §6 L695: 公開 API は --{Block名からプレフィックス除外}-{名前} 形式

整合状況

wp-starter tc / agent-reference / mflocss.dev は元から --section-padding-* を採用。starter のみが PR #180 で乖離していたため、本 PR で統一。

🤖 Generated with Claude Code

…revert(spec L695 準拠)

PR #180 で `--l-section-padding-min/max` に変更した公開 API 名を
`--section-padding-min/max` に戻す。
spec §6 L695 「公開 API は Block 名からプレフィックス除外」原則違反のため。

- l-section.css: コメント + var() 参照を修正
- p-cta.css / p-numbers.css / p-problem.css: override 変数名を修正
- Block 冒頭 --_padding-min/max の private alias 構造は維持

修正前 grep `l-section-padding`: 10件 / 修正後: 0件

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shunei-web shunei-web merged commit a211e81 into v1.2 Apr 29, 2026
1 of 2 checks passed
@shunei-web shunei-web deleted the feature/revert-l-section-prefix branch April 29, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant