Skip to content

docs(grid): document .col-auto in variable-width content - #42880

Open
RohithPariki wants to merge 1 commit into
twbs:mainfrom
RohithPariki:docs-explain-col-auto
Open

docs(grid): document .col-auto in variable-width content#42880
RohithPariki wants to merge 1 commit into
twbs:mainfrom
RohithPariki:docs-explain-col-auto

Conversation

@RohithPariki

Copy link
Copy Markdown

Description

  • Explicitly mentions .col-auto alongside col-{breakpoint}-auto in the Variable width content section of the Grid documentation (site/src/content/docs/layout/grid.mdx).
  • Updates the variable-width code example to demonstrate .col-auto alongside .col-md-auto.
  • Updates the Margin utilities section in the Columns documentation (site/src/content/docs/layout/columns.mdx) to clarify usage with variable-width columns like .col-auto.

Motivation & Context

In the grid documentation under "Variable width content", the text previously only mentioned col-{breakpoint}-auto classes and only demonstrated .col-md-auto. However, .col-auto was not explicitly introduced or searchable in the section, yet was used in subsequent examples such as the Columns margin utilities section.

Explicitly documenting .col-auto makes it clear that the breakpoint-less variant exists for sizing columns based on natural content width across all viewports.

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

Related issues

Closes #36978

@github-project-automation github-project-automation Bot moved this to Needs review in v5.4.0 Aug 29, 2026
@julien-deramond julien-deramond moved this from Needs review to To analyze in v5.4.0 Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: To analyze

Development

Successfully merging this pull request may close these issues.

5.2: docs: col-auto isn't explained before this point

2 participants