Skip to content

v6: Update some flex utility examples with class names#42392

Merged
mdo merged 1 commit intotwbs:v6-devfrom
coliff:dev/coliff/v6-docs-flex-examples
May 4, 2026
Merged

v6: Update some flex utility examples with class names#42392
mdo merged 1 commit intotwbs:v6-devfrom
coliff:dev/coliff/v6-docs-flex-examples

Conversation

@coliff
Copy link
Copy Markdown
Contributor

@coliff coliff commented May 4, 2026

Description

Replace generic "Flex item"/"Grid item" placeholders with descriptive words (e.g. "Align", "Items", "Start/End/Center/Stretch") across align-items, justify-items, and place-items docs.

I added the w-5 utility to flex examples to give consistent item widths (as they were previously) so alignment demos render more clearly.

Motivation & Context

This is already done on the Justify Content example and I think slightly helps the user understand which class is being used.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Replace generic "Flex item"/"Grid item" placeholders with descriptive words (e.g. "Align", "Items", "Start/End/Center/Stretch") across align-items, justify-items, and place-items docs. Add w-5 utility to flex examples to give consistent item widths so alignment demos render more clearly. Files updated: site/src/content/docs/utilities/align-items.mdx, justify-items.mdx, place-items.mdx.
Copilot AI review requested due to automatic review settings May 4, 2026 07:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the utility docs examples for alignment-related classes so the live demos use more descriptive item labels, making it easier to see what each example is demonstrating. In align-items, it also adds fixed-width utility classes to the flex items so the examples render more consistently.

Changes:

  • Replaced generic “Flex item” / “Grid item” labels with descriptive words in align-items, justify-items, and place-items examples.
  • Added w-5 to the flex items in align-items examples for more consistent demo widths.
  • Left the API/reference sections unchanged while refining only the example content.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
site/src/content/docs/utilities/align-items.mdx Updates live flex alignment examples with descriptive labels and fixed-width item classes.
site/src/content/docs/utilities/justify-items.mdx Updates grid horizontal-alignment examples to use descriptive item labels.
site/src/content/docs/utilities/place-items.mdx Updates grid two-axis alignment examples to use descriptive item labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coliff coliff changed the title v6: Update alignment examples text and widths v6: Update some flex utility examples with class names May 4, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 May 4, 2026
@mdo mdo merged commit ce18b73 into twbs:v6-dev May 4, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

4 participants