v6: docs updates#42394
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates Bootstrap v6 documentation and example snippets to align with the current v6 utility class names/tokens (notably fg-* color utilities) and removes an inaccurate migration-table entry.
Changes:
- Fix a docs color example to use
bg-black(sincebg-darkis not present) for the.fg-whitesample. - Remove the “Stepper” row from the v5→v6 class migration table (it was not applicable as a v5 “before” class).
- Update multiple Astro examples to replace deprecated/nonexistent
text-*color utility classes with the v6fg-*equivalents (including emphasis variants).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| site/src/content/docs/utilities/colors.mdx | Corrects a color utility example to use an available background utility (bg-black). |
| site/src/content/docs/guides/migration.mdx | Removes an inapplicable migration mapping row for “Stepper”. |
| site/src/assets/examples/dialogs/index.astro | Updates button text coloring to use v6 fg-primary utilities. |
| site/src/assets/examples/checkout/index.astro | Updates “Your cart” and promo code coloring to use fg-* utilities. |
| site/src/assets/examples/blog/index.astro | Updates emphasis color utilities to fg-emphasis-* variants. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8bd61fb to
f1a4a93
Compare
|
Thanks for this! The replacement for |
Oh, I'll look into updating that later today, though i thought |
Ah yeah that's a valid distinction. The change we're making here is that every theme class is color mode adaptive. The raw CSS variables are there for people if they need static values. We could always provide utility map definitions folks could add on to enable those kind of classes. A recipe of sorts for adding or changing features. |
Squash PR commits into one changeset for easier review and merge. Co-authored-by: Cursor <cursoragent@cursor.com>
4a6c65c to
f332abe
Compare
Description / Motivation & Context
various minor fixes across docs and examples.
side note: there is a lot of usage of the
bg-darkutility class which isn't in v6. We could replace withbg-blackI suppose, butbg-darkwas/is a useful utility class. I'd be happy to see it re-added!Type of changes
Checklist
npm run lint)Live previews