Skip to content

v6: docs - Update utility class names in docs and examples#42418

Open
coliff wants to merge 1 commit into
twbs:v6-devfrom
coliff:dev/coliff/v6-more-docs-example-fixes
Open

v6: docs - Update utility class names in docs and examples#42418
coliff wants to merge 1 commit into
twbs:v6-devfrom
coliff:dev/coliff/v6-more-docs-example-fixes

Conversation

@coliff
Copy link
Copy Markdown
Contributor

@coliff coliff commented May 18, 2026

Description / Motivation & Context

Replace deprecated utility classes with the updated names across site docs and examples. Changes include switching text-* classes to fg-, text-bg- badge classes to theme-*, and replacing clearfix with d-flow-root. Affected files: cover and drawer-navbar examples, spinner example, reboot, accessibility, columns docs, and versions page to keep examples consistent with the new utility naming.
135

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

Copilot AI review requested due to automatic review settings May 18, 2026 06:42
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

This PR updates documentation and example pages to use v6 utility class names: text-*fg-* for text color, text-bg-* badge classes → theme-*, and clearfixd-flow-root. The changes keep docs/examples consistent with the renamed utilities in the v6 codebase.

Changes:

  • Replace text-* color utilities with fg-* equivalents in accessibility, reboot, and cover example.
  • Replace text-bg-* badge classes with theme-* in versions page and drawer-navbar example.
  • Replace clearfix with d-flow-root in spinner docs and columns prose.

Reviewed changes

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

Show a summary per file
File Description
site/src/pages/docs/versions.astro Update "Latest"/"Alpha" badges to use theme-primary/theme-warning.
site/src/content/docs/layout/columns.mdx Update prose to refer to d-flow-root instead of clearfix.
site/src/content/docs/getting-started/accessibility.mdx Switch example text-dangerfg-danger.
site/src/content/docs/content/reboot.mdx Switch text-successfg-success in <hr> example.
site/src/content/docs/components/spinner.mdx Replace clearfix with d-flow-root in floats example.
site/src/assets/examples/drawer-navbar/index.astro Swap badge text-bg-light for badge theme-secondary.
site/src/assets/examples/cover/index.astro Replace text-white link classes with fg-white.

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

@coliff coliff force-pushed the dev/coliff/v6-more-docs-example-fixes branch 2 times, most recently from d219ec1 to 65139a8 Compare May 18, 2026 07:18
Replace deprecated utility classes with the updated names across site docs and examples. Changes include switching text-* classes to fg-*, text-bg-* badge classes to theme-*, and replacing clearfix with d-flow-root. Affected files: cover and drawer-navbar examples, spinner example, reboot, accessibility, columns docs, and versions page to keep examples consistent with the new utility naming.

Add btn-icon class to navbar toggler

Add the btn-icon utility class to the navbar toggler button in the navbar-fixed example to apply icon button styling. This change updates site/src/assets/examples/navbar-fixed/index.astro and keeps the existing SVG toggler markup and collapse behavior unchanged.
@coliff coliff force-pushed the dev/coliff/v6-more-docs-example-fixes branch from 47e4954 to 2c7e39c Compare May 19, 2026 12:03
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.

2 participants