Skip to content

Conversation

@halocline
Copy link
Collaborator

@halocline halocline commented Nov 21, 2025

Deploy Preview

What does this PR do?

This is the third of a series of chained PRs building upon #5521. The PRs should be reviewed and merged in order.

  • Scale system
  • Spacing sizes
  • Container sizes
  • Component sizing
  • Refining T-shirt page content + re-wiring all cross-links

This pull request introduces a new "Content container sizes" foundation concept to the design system documentation and examples. It adds comprehensive documentation, interactive examples, and design token references for container sizes, border widths, and radius sizes, expanding the layout and sizing guidance. Additionally, it updates related metadata and links throughout the site to integrate this new foundation area.

Foundation and Documentation Updates

  • Added a new "Content container sizes" foundation entry to foundation.js, including tags, sections, preview images, and related content metadata.
  • Created a new documentation page content-container-sizes.mdx with detailed explanations, usage guidance, and embedded interactive examples for container sizes, border widths, and radius sizes.

Interactive Examples

  • Added new example components: ContainerSizes.jsx, BorderWidths.jsx, and RadiusSizes.jsx, each providing interactive controls for visualizing container dimensions, border widths, and radius sizes using design tokens. [1] [2] [3]
  • Added CTA components (DesignTokenCTAs.jsx) linking to relevant design token documentation sections.
  • Exported these new examples in the examples index and included them in the main foundation examples export. [1] [2]

Metadata and Related Content Integration

  • Updated related content arrays in foundation.js and tokens.js to reference the new "Content container sizes" foundation, improving discoverability across the site. [1] [2] [3]

Minor Improvements

  • Changed the StyledFigure CSS in FigureWrapper.js to use display: contents for improved layout handling.
  • Removed unused import from spacing.mdx for code cleanliness.

What are the relevant issues?

Where should the reviewer start?

https://deploy-preview-5579--keen-mayer-a86c8b.netlify.app/foundation/content-container-sizes

How should this be manually tested?

Any background context you want to provide?

Screenshots (if appropriate)

Should this PR be mentioned in Design System updates?

Is this change backwards compatible or is it a breaking change?

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

⚠️ No Changeset found

Latest commit: bbc8ac8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@halocline halocline changed the base branch from layout-content-2-matt-a to layout-content-2 November 21, 2025 23:52
@halocline halocline changed the base branch from layout-content-2 to layout-content-2-matt-a November 21, 2025 23:55
@oliverHPE
Copy link
Collaborator

😍

Comment on lines +24 to +46
<Notification
alignSelf="start"
status="info"
title="Tip"
message={
<Paragraph margin="none">
Need more flexible dimensions for containers? Use t-shirt sizes to specify
min-max ranges which{' '}
<Link href="/components/grid#flexible-columns" passHref legacyBehavior>
<Anchor>allow containers to flex</Anchor>
</Link>{' '}
according to available screen real-estate. Alternatively, consider{' '}
<Link
href="/templates/content-layouts#content-driven-layouts"
passHref
legacyBehavior
>
<Anchor>content-driven layouts</Anchor>
</Link>{' '}
to avoid artificially restricting content.
</Paragraph>
}
/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest we make this a normal paragraph and add under "container sizes" section. I would like to avoid using notifications and "tip like" content because it might look unstructured when used too much.

Here's my suggestion: For more flexibility, t-shirt sizes can define minimum and maximum ranges so containers adjust to available screen space. To avoid restricting content unnecessarily, consider using content-driven layouts instead.

I added this phrase with the container sizes paragraph.

Comment on lines +50 to +53
Content containers may be implemented as invisible bounding boxes defining layout
regions or visible surfaces on which content may be displayed. In either scenario,
t-shirt sizes specify container dimensions used when defining
[container-driven layouts](/templates/content-layouts#container-driven-layouts).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Content containers may be implemented as invisible bounding boxes defining layout
regions or visible surfaces on which content may be displayed. In either scenario,
t-shirt sizes specify container dimensions used when defining
[container-driven layouts](/templates/content-layouts#container-driven-layouts).
Content containers can be implemented as invisible bounding boxes that define layout regions or as visible surfaces where content is displayed. T-shirt sizes provide standard dimensions for [container-driven layouts](/templates/content-layouts#container-driven-layouts). For more flexibility, t-shirt sizes can define minimum and maximum ranges so containers [adjust to available screen space](/components/grid#flexible-columns). To avoid restricting content unnecessarily, consider using [content-driven layouts](/templates/content-layouts#content-driven-layouts) instead.

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.

4 participants