Subgrid
サブグリッド
サブグリッドは、親の行または列のサイズを共有する別のグリッド内のグリッドです。1方向のみまたは両方を共有できます。
もう一つの例
3つの料金カードが親グリッド上に並んでいます。各カードは `grid-template-rows: subgrid` を使用しています。プラン名、価格、機能、CTAボタンは、テキストの長さが異なっても揃います。狭い画面では親が1列に変わり、レイアウトはそれでも意味を成します。
主な部分
- 01親トラック
- 02サブグリッド軸
- 03整合された子孫
以下の場合に使用します
ネストされたコンポーネント内のコンテンツが、トラックルールをコピーせずに共有親トラックに揃う必要がある場合に使用します。
以下の場合は使用しないでください
1つのグリッドがネストされているという理由だけでサブグリッドを使用しないでください。アイテムをカード間で揃える必要がない場合、別の子グリッドのほうが簡単です。
コードで使用する名前
grid-template-columns: subgrid and/or grid-template-rows: subgrid 出荷前に
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome:Complete the task with サブグリッド (Subgrid)。 User context:3つの料金カードが親グリッド上に並んでいます。各カードは `grid-template-rows: subgrid` を使用しています。プラン名、価格、機能、CTAボタンは、テキストの長さが異なっても揃います。狭い画面では親が1列に変わり、レイアウトはそれでも意味を成します。 Design concept to apply:サブグリッド (Subgrid)。 Why it fits:ネストされたコンポーネント内のコンテンツが、トラックルールをコピーせずに共有親トラックに揃う必要がある場合に使用します。 Do not use it when:1つのグリッドがネストされているという理由だけでサブグリッドを使用しないでください。アイテムをカード間で揃える必要がない場合、別の子グリッドのほうが簡単です。 Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
このリクエストを確認する
Review how サブグリッド (Subgrid) is used now. Definition: サブグリッドは、親の行または列のサイズを共有する別のグリッド内のグリッドです。1方向のみまたは両方を共有できます。 Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.