]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Drop deprecated `.card-link` remaining usage (#42529)
authorJulien Déramond <juderamond@gmail.com>
Sat, 20 Jun 2026 20:58:05 +0000 (22:58 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jun 2026 20:58:05 +0000 (13:58 -0700)
site/src/assets/examples/cheatsheet/index.astro
site/src/content/docs/components/card.mdx
site/src/content/docs/guides/migration.mdx

index 92a30f95ff1ca2e187eec1f7883b02b0053ee0f2..707d73b797bd97fadf628e53ff1b2ce4e34334d2 100644 (file)
@@ -809,14 +809,14 @@ export const body_class = 'bg-body-tertiary'
                   <h5 class="card-title">Card title</h5>
                   <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                 </div>
-                <ul class="list-group list-group-flush">
+                <ul class="list-group list-group-flush card-list">
                   <li class="list-group-item">An item</li>
                   <li class="list-group-item">A second item</li>
                   <li class="list-group-item">A third item</li>
                 </ul>
-                <div class="card-body">
-                  <a href="#" class="card-link">Card link</a>
-                  <a href="#" class="card-link">Another link</a>
+                <div class="card-body flex-row gap-4">
+                  <a href="#">Card link</a>
+                  <a href="#">Another link</a>
                 </div>
               </div>
             </div>
index 218f01b4efcf8771adc325dc8176e9794cca0f6d..2001f5b221f5fc4026a92e7b6af656393908e0a3 100644 (file)
@@ -140,9 +140,9 @@ Mix and match multiple content types to create the card you need, or throw every
       <li class="list-group-item">A second item</li>
       <li class="list-group-item">A third item</li>
     </ul>
-    <div class="card-body">
-      <a href="#" class="card-link">Card link</a>
-      <a href="#" class="card-link">Another link</a>
+    <div class="card-body flex-row gap-4">
+      <a href="#">Card link</a>
+      <a href="#">Another link</a>
     </div>
   </div>`} />
 
index 106129871151477e7f9d847e1e04665273c48b05..fef0b6c4a984b879d14ad7d764baed993b000159 100644 (file)
@@ -210,7 +210,7 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
   - Theme coloring via `.theme-*` classes on the `.accordion` wrapper.
 - **Rebuilt close button markup.** `.btn-close` now renders its icon via a CSS `mask-image` (`--btn-close-icon`) tinted with `background-color: currentcolor`, so the button is self-contained—no child `<svg>` is required. The filter-based dark mode approach (`$btn-close-white-filter`) has been replaced by `currentcolor` inheritance, and the `.btn-close-white` class has been removed—on dark backgrounds (e.g., `.text-bg-dark`) the icon now inherits the contrast color automatically.
 - **Removed `.alert-dismissible`.** Dismissible alerts no longer require the `.alert-dismissible` modifier class. Place a `.btn-close` directly inside the alert—the alert's flex layout positions it automatically. Remove any `.alert-dismissible` class from your markup.
-- **Restructured cards.** Borders now live on `.card-body` and `.card-list` segments rather than a single outer `.card` border. Added `--card-box-shadow` and `--card-body-gap` tokens. New variant classes: `.card-translucent` (frosted glass effect) and `.card-subtle` (themed with subtle backgrounds). Horizontal cards use a new `.card-row` class.
+- **Restructured cards.** Borders now live on `.card-body` and `.card-list` segments rather than a single outer `.card` border. Added `--card-box-shadow` and `--card-body-gap` tokens. New variant classes: `.card-translucent` (frosted glass effect) and `.card-subtle` (themed with subtle backgrounds). Horizontal cards use a new `.card-row` class. Removed `.card-link` class.
 - **Card groups now use container queries.** `.card-group` switches to its attached, equal-width row layout with a `@container` query instead of a viewport `@media` query, so it responds to the width of a parent query container rather than the viewport. Wrap the card group in a query container—e.g. add the `.contains-inline` utility to a parent element—or the cards stay stacked.
 - **List group horizontal variants now use container queries.** The `.*:list-group-horizontal` classes switch between vertical and horizontal layouts with `@container` queries instead of viewport `@media` queries, responding to a parent query container rather than the viewport. Wrap the list group in a query container (e.g. `.contains-inline`) for the responsive variants to take effect.
 - **Reworked badge variants.** Badge color variants now use `.badge-subtle` and `.badge-outline` combined with `.theme-*` classes (e.g., `.badge-subtle .theme-primary`), replacing the v5 `.bg-primary` utility pattern on badges.