]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove added badges from docs pages (#41694)
authorMark Otto <markd.otto@gmail.com>
Thu, 28 Aug 2025 03:13:31 +0000 (20:13 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 10 Oct 2025 17:03:22 +0000 (10:03 -0700)
* Remove added badges from docs pages

* Remove AddedIn

44 files changed:
site/src/components/shortcodes/AddedIn.astro [deleted file]
site/src/components/shortcodes/CSSVariables.astro [new file with mode: 0644]
site/src/content/docs/components/accordion.mdx
site/src/content/docs/components/alerts.mdx
site/src/content/docs/components/badge.mdx
site/src/content/docs/components/breadcrumb.mdx
site/src/content/docs/components/buttons.mdx
site/src/content/docs/components/card.mdx
site/src/content/docs/components/close-button.mdx
site/src/content/docs/components/dropdowns.mdx
site/src/content/docs/components/list-group.mdx
site/src/content/docs/components/modal.mdx
site/src/content/docs/components/navbar.mdx
site/src/content/docs/components/navs-tabs.mdx
site/src/content/docs/components/offcanvas.mdx
site/src/content/docs/components/pagination.mdx
site/src/content/docs/components/placeholders.mdx
site/src/content/docs/components/popovers.mdx
site/src/content/docs/components/progress.mdx
site/src/content/docs/components/spinners.mdx
site/src/content/docs/components/toasts.mdx
site/src/content/docs/components/tooltips.mdx
site/src/content/docs/content/reboot.mdx
site/src/content/docs/customize/color-modes.mdx
site/src/content/docs/customize/color.mdx
site/src/content/docs/customize/css-variables.mdx
site/src/content/docs/forms/validation.mdx
site/src/content/docs/getting-started/contribute.mdx
site/src/content/docs/getting-started/vite.mdx
site/src/content/docs/helpers/color-background.mdx
site/src/content/docs/helpers/colored-links.mdx
site/src/content/docs/helpers/focus-ring.mdx
site/src/content/docs/helpers/icon-link.mdx
site/src/content/docs/helpers/stacks.mdx
site/src/content/docs/helpers/vertical-rule.mdx
site/src/content/docs/layout/css-grid.mdx
site/src/content/docs/utilities/background.mdx
site/src/content/docs/utilities/borders.mdx
site/src/content/docs/utilities/colors.mdx
site/src/content/docs/utilities/link.mdx
site/src/content/docs/utilities/object-fit.mdx
site/src/content/docs/utilities/opacity.mdx
site/src/content/docs/utilities/z-index.mdx
site/src/types/auto-import.d.ts

diff --git a/site/src/components/shortcodes/AddedIn.astro b/site/src/components/shortcodes/AddedIn.astro
deleted file mode 100644 (file)
index d9a26ce..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
----
-/*
- * Outputs badge to identify the first version something was added
- */
-
-interface Props {
-  version: string
-}
-
-const { version } = Astro.props
----
-
-<small
-  class="d-inline-flex mb-3 px-2 py-1 fw-semibold text-success-emphasis bg-success-subtle border border-success-subtle rounded-2"
-  >Added in v{version}</small
->
diff --git a/site/src/components/shortcodes/CSSVariables.astro b/site/src/components/shortcodes/CSSVariables.astro
new file mode 100644 (file)
index 0000000..d316a79
--- /dev/null
@@ -0,0 +1,13 @@
+---
+interface Props {
+  component: string
+  className?: string
+}
+
+const { component, className } = Astro.props
+---
+
+<p>
+  {component} use local CSS variables on <code>.{className}</code> for real-time customization.
+  Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+</p>
index 64bb59f72817f367dfae47fb458fb2c6748a0152..5548962fed1f98f0bca0640dd547311f122e50be 100644 (file)
@@ -149,9 +149,7 @@ Please read the [collapse accessibility section]([[docsref:/components/collapse#
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, accordions now use local CSS variables on `.accordion` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Accordions" className="accordion" />
 
 <ScssDocs name="accordion-css-vars" file="scss/_accordion.scss" />
 
index 68de62d1acc39dafd4b3be018428794b836fdbe0..9f436197e5df31efd91856259e38f3f9a88d98d4 100644 (file)
@@ -122,9 +122,7 @@ When an alert is dismissed, the element is completely removed from the page stru
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, alerts now use local CSS variables on `.alert` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Alerts" className="alert" />
 
 <ScssDocs name="alert-css-vars" file="scss/_alert.scss" />
 
index b3e574b6d8998aacdd28586156a6c7c4613dcb93..01b6476a3ee01675e75dcf3b14cdfe1aab6512a8 100644 (file)
@@ -54,8 +54,6 @@ You can also replace the `.badge` class with a few more utilities without a coun
 
 ## Background colors
 
-<AddedIn version="5.2.0" />
-
 Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer.
 
 <Example code={getData('theme-colors').map((themeColor) => `<span class="badge text-bg-${themeColor.name}">${themeColor.title}</span>`)} />
@@ -72,9 +70,7 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, badges now use local CSS variables on `.badge` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Badges" className="badge" />
 
 <ScssDocs name="badge-css-vars" file="scss/_badge.scss" />
 
index b30aaa560d0afc5e0c03349ff5cbd068a8ed0123..435ba128ff786a04b53faee6f1bf7ee79e5a5392 100644 (file)
@@ -86,9 +86,7 @@ For more information, see the [ARIA Authoring Practices Guide breadcrumb pattern
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, breadcrumbs now use local CSS variables on `.breadcrumb` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Breadcrumbs" className="breadcrumb" />
 
 <ScssDocs name="breadcrumb-css-vars" file="scss/_breadcrumb.scss" />
 
index 3cf99ae197f1fd4a220f93059c826945da1e5f9e..58da2a329f9de73cb37642dc313db72143359bbc 100644 (file)
@@ -190,9 +190,7 @@ document.querySelectorAll('.btn').forEach(buttonElement => {
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, buttons now use local CSS variables on `.btn` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Buttons" className="btn" />
 
 <ScssDocs name="btn-css-vars" file="scss/_buttons.scss" />
 
index 1cf25220cfc916daabdb2cc71cc1ed72c8269a30..b0fedd460b5c929419ca3972a1467a9f0682daf8 100644 (file)
@@ -379,8 +379,6 @@ Cards include various options for customizing their backgrounds, borders, and co
 
 ### Background and color
 
-<AddedIn version="5.2.0" />
-
 Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer.
 
 <Example code={getData('theme-colors').map((themeColor) => `<div class="card text-bg-${themeColor.name} mb-3" style="max-width: 18rem;">
@@ -662,9 +660,7 @@ In `v4` we used a CSS-only technique to mimic the behavior of [Masonry](https://
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, cards now use local CSS variables on `.card` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Cards" className="card" />
 
 <ScssDocs name="card-css-vars" file="scss/_card.scss" />
 
index ef70fccaccc84d640d02b4913cbe962478fe8130..96defaad15d448dd0146536e5d59296e4478beb6 100644 (file)
@@ -29,9 +29,7 @@ Add `data-bs-theme="dark"` to the `.btn-close`, or to its parent element, to inv
 
 ### Variables
 
-<AddedIn version="5.3.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, close button now uses local CSS variables on `.btn-close` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Close button" className="btn-close" />
 
 <ScssDocs name="close-css-vars" file="scss/_close.scss" />
 
index 22c7e07db277d3b5208ae292a55c1da2dd8cd990..79eb5239d364888501b8350d4764f50ca9eec481 100644 (file)
@@ -927,9 +927,7 @@ By default, the dropdown menu is closed when clicking inside or outside the drop
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, dropdowns now use local CSS variables on `.dropdown-menu` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Dropdowns" className="dropdown-menu" />
 
 <ScssDocs name="dropdown-css-vars" file="scss/_dropdown.scss" />
 
index 09938f6e65b772d0654ebfdb18a80c75c2df8093..5d4727cbd52aa859aad8ab202a2ef86bf75c6a54 100644 (file)
@@ -253,9 +253,7 @@ You can use `.stretched-link` on `<label>`s to make the whole list group item cl
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, list groups now use local CSS variables on `.list-group` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="List groups" className="list-group" />
 
 <ScssDocs name="list-group-css-vars" file="scss/_list-group.scss" />
 
index 2f2cb55557ad02b27f65bc80e47b70073215b5cf..3152fa6d6ab67ef3e18e3d26e3312e857f01f624 100644 (file)
@@ -725,9 +725,7 @@ Another override is the option to pop up a modal that covers the user viewport,
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, modals now use local CSS variables on `.modal` and `.modal-backdrop` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Modals" className="modal" />
 
 <ScssDocs name="modal-css-vars" file="scss/_modal.scss" />
 
index 7e8007859de9c4aa638f611c66879d36ba748944..9d412b3f613a03f99e87818b923b15d2477af394 100644 (file)
@@ -721,9 +721,7 @@ When using offcanvas in a dark navbar, be aware that you may need to have a dark
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, navbars now use local CSS variables on `.navbar` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Navbars" className="navbar" />
 
 <ScssDocs name="navbar-css-vars" file="scss/_navbar.scss" />
 
index fe51c6928120667a4721a957b35aa99e2c11e6b5..46be7dc773b271061ad425efd8c603ef8d2e944c 100644 (file)
@@ -295,9 +295,7 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, navs now use local CSS variables on `.nav`, `.nav-tabs`, and `.nav-pills` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Navs" className="nav" />
 
 On the `.nav` base class:
 
@@ -311,8 +309,6 @@ On the `.nav-pills` modifier class:
 
 <ScssDocs name="nav-pills-css-vars" file="scss/_nav.scss" />
 
-<AddedIn version="5.3.0" />
-
 On the `.nav-underline` modifier class:
 
 <ScssDocs name="nav-underline-css-vars" file="scss/_nav.scss" />
index fecf7ed84a733449c65d163c0f47b83b570736bb..c97833ee59c9ca8bf95abb7cdf5e065218bd5c0f 100644 (file)
@@ -139,8 +139,6 @@ Change the appearance of offcanvases with utilities to better match them to diff
 
 ## Responsive
 
-<AddedIn version="5.2.0" />
-
 Responsive offcanvas classes hide content outside the viewport from a specified breakpoint and down. Above that breakpoint, the contents within will behave as usual. For example, `.offcanvas-lg` hides content in an offcanvas below the `lg` breakpoint, but shows the content above the `lg` breakpoint. Responsive offcanvas classes are available for each breakpoint.
 
 - `.offcanvas`
@@ -221,9 +219,7 @@ Since the offcanvas panel is conceptually a modal dialog, be sure to add `aria-l
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, offcanvas now uses local CSS variables on `.offcanvas` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Offcanvas" className="offcanvas" />
 
 <ScssDocs name="offcanvas-css-vars" file="scss/_offcanvas.scss" />
 
index 063c14eef717c3963b07cb447f0fea628726843e..f420b04f028e366f63fa43fa9b35cb95182979b8 100644 (file)
@@ -156,9 +156,7 @@ Or with `.justify-content-end`:
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, pagination now uses local CSS variables on `.pagination` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Pagination" className="pagination" />
 
 <ScssDocs name="pagination-css-vars" file="scss/_pagination.scss" />
 
index 138e8428ed5d99f20e297e5f44de90273e2ca0ce..d90cd7eadc97197821725920361fab27344d70c2 100644 (file)
@@ -2,8 +2,6 @@
 title: Placeholders
 description: Use loading placeholders (skeleton loaders) for your components or pages to indicate something may still be loading.
 toc: true
-added:
-  version: "5.1"
 ---
 
 import { getData } from '@libs/data'
index 8947fb0a1c2692b6b8f43fb0a75db5f4a0fda7db..3808aa5a1a8e4e5579e3a5630fd20034c4419c08 100644 (file)
@@ -81,8 +81,6 @@ const popover = new bootstrap.Popover('.example-popover', {
 
 ### Custom popovers
 
-<AddedIn version="5.2.0" />
-
 You can customize the appearance of popovers using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-popover"` to scope our custom appearance and use it to override some of the local CSS variables.
 
 <ScssDocs name="custom-popovers" file="site/src/scss/_component-examples.scss" />
@@ -125,9 +123,7 @@ For disabled popover triggers, you may also prefer `data-bs-trigger="hover focus
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, popovers now use local CSS variables on `.popover` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Popovers" className="popover" />
 
 <ScssDocs name="popover-css-vars" file="scss/_popover.scss" />
 
index 7529bb9cc0664da8ec42fcb2153f5a0a3ce6c9a4..e0ae359b6e31f4ff592efc2f7de1e8f55e7f09bf 100644 (file)
@@ -153,9 +153,7 @@ The striped gradient can also be animated. Add `.progress-bar-animated` to `.pro
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, progress bars now use local CSS variables on `.progress` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Progress" className="progress" />
 
 <ScssDocs name="progress-css-vars" file="scss/_progress.scss" />
 
index c02d0e9d757474cb262c97b048f0341d8d6eb446..4d54f3c04f937615537c8cfe284f05407ced5e4c 100644 (file)
@@ -139,9 +139,7 @@ Use spinners within buttons to indicate an action is currently processing or tak
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, spinners now use local CSS variables on `.spinner-border` and `.spinner-grow` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Spinners" className="spinner-{border|grow}" />
 
 Border spinner variables:
 
index cb6afb9d6f3610f8bafd0399c83bc5fba15ac1e2..106b2802ca238c141bc2e0ef95366f803b42e1dd 100644 (file)
@@ -294,9 +294,7 @@ While technically it’s possible to add focusable/actionable controls (such as
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, toasts now use local CSS variables on `.toast` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Toasts" className="toast" />
 
 <ScssDocs name="toast-css-vars" file="scss/_toasts.scss" />
 
index 16f215fc687bc0bc4795fdf0f0da0b803c392d7b..74e14470104fa224ec3313f60cc1096b9fe27a0c 100644 (file)
@@ -45,8 +45,6 @@ Hover over the links below to see tooltips:
 
 ### Custom tooltips
 
-<AddedIn version="5.2.0" />
-
 You can customize the appearance of tooltips using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-tooltip"` to scope our custom appearance and use it to override a local CSS variable.
 
 <ScssDocs name="custom-tooltip" file="site/src/scss/_component-examples.scss" />
@@ -108,9 +106,7 @@ With an SVG:
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
-As part of Bootstrap’s evolving CSS variables approach, tooltips now use local CSS variables on `.tooltip` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
+<CSSVariables component="Tooltips" className="tooltip" />
 
 <ScssDocs name="tooltip-css-vars" file="scss/_tooltip.scss" />
 
index 4b8f8745a0d2ce4aaa392a145a55b80f0efb2029..31a0262d63f934fd1eb829621d3435c3892ea43e 100644 (file)
@@ -18,8 +18,6 @@ Here are our guidelines and reasons for choosing what to override in Reboot:
 
 ## CSS variables
 
-<AddedIn version="5.2.0"/>
-
 With v5.1.1, we standardized our required `@import`s across all our CSS bundles (including `bootstrap.css`, `bootstrap-reboot.css`, and `bootstrap-grid.css`) to include `_root.scss`. This adds `:root` level CSS variables to all bundles, regardless of how many of them are used in that bundle. Ultimately Bootstrap 5 will continue to see more [CSS variables]([[docsref:/customize/css-variables]]) added over time, in order to provide more real-time customization without the need to always recompile Sass. Our approach is to take our source Sass variables and transform them into CSS variables. That way, even if you don’t use CSS variables, you still have all the power of Sass. **This is still in-progress and will take time to fully implement.**
 
 For example, consider these `:root` CSS variables for common `<body>` styles:
index 79dd7f6a437ef48737932d8fa592c1bb9de35a38..c16aad79fcd5f1ce08695714ebebff295b5e7692 100644 (file)
@@ -2,8 +2,6 @@
 title: Color modes
 description: Bootstrap now supports color modes, or themes, as of v5.3.0. Explore our default light color mode and the new dark mode, or create your own using our styles as your template.
 toc: true
-added:
-  version: "5.3"
 ---
 
 import { getDocsRelativePath } from '@libs/path'
index b24f14d6b0eaa581ce0045eca301a96908342e3b..178a74780ede8f7abf725be52d678ad4f12a17a2 100644 (file)
@@ -9,8 +9,6 @@ import { getSequence } from '@libs/utils'
 
 ## Colors
 
-<AddedIn version="5.3.0" />
-
 Bootstrap’s color palette has continued to expand and become more nuanced in v5.3.0. We’ve added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged.
 
 Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` and `rgba()` color modes. For example, `rgba(var(--bs-secondary-bg-rgb), .5)`.
@@ -470,8 +468,6 @@ Here’s how you can use these in your Sass:
 
 ## Generating utilities
 
-<AddedIn version="5.1.0"/>
-
 Bootstrap doesn’t include `color` and `background-color` utilities for every color variable, but you can generate these yourself with our [utility API]([[docsref:/utilities/api]]) and our extended Sass maps added in v5.1.0.
 
 1. To start, make sure you’ve imported our functions, variables, mixins, and utilities.
index 20a0b9d44fab3282bb7d7beafaec943446a8cf94..488d69555960d8507629b8cfe62848f150c8ac0a 100644 (file)
@@ -53,8 +53,6 @@ a {
 
 ## Focus variables
 
-<AddedIn version="5.3.0"/>
-
 Bootstrap provides custom `:focus` styles using a combination of Sass and CSS variables that can be optionally added to specific components and elements. We do not yet globally override all `:focus` styles.
 
 In our Sass, we set default values that can be customized before compiling.
index cf6da63bd84557d06ad3c33c6657ac433dda7a69..d430f1accf78ddd5e1f8535aaa3059cdc64ea554 100644 (file)
@@ -339,8 +339,6 @@ If your form layout allows it, you can swap the `.{valid|invalid}-feedback` clas
 
 ### Variables
 
-<AddedIn version="5.3.0"/>
-
 As part of Bootstrap’s evolving CSS variables approach, forms now use local CSS variables for validation for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
 
 <ScssDocs name="root-form-validation-variables" file="scss/_root.scss" />
index e1af5dc2934f1015eb65d0454e05724c641b6b7b..23213b860b7b6323763fc8d443514eb7cb6caaef 100644 (file)
@@ -3,9 +3,6 @@ title: Contribute
 description: Help develop Bootstrap with our documentation build scripts and tests.
 toc: true
 aliases: "/docs/[[config:docs_version]]/getting-started/build-tools/"
-added:
-  show_badge: false
-  version: "5.1"
 ---
 ## Tooling setup
 
index 0041285b5abba22a766b4b3618a16437e7a1c57a..858942ef6dd14c1c4b7977bc517f97151480329c 100644 (file)
@@ -3,9 +3,6 @@ title: Bootstrap and Vite
 description: The official guide for how to include and bundle Bootstrap’s CSS and JavaScript in your project using Vite.
 toc: true
 thumbnail: guides/bootstrap-vite@2x.png
-added:
-  show_badge: false
-  version: "5.2"
 ---
 
 <img class="d-block mx-auto mb-4 img-fluid rounded-3" srcset="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png, /docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite@2x.png 2x" src="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png" width="800" height="400" alt="" />
index e911200576de012c6b930b6d674c0e70c129ba1a..d7251f1a6d461f1803fe51cd19fe9f9ab4a66b07 100644 (file)
@@ -2,8 +2,6 @@
 title: Color and background
 description: Set a background color with contrasting foreground color.
 toc: true
-added:
-  version: "5.2"
 ---
 
 import { getData } from '@libs/data'
index f26204df53de524e5bc6e4157588d1532af2d897..4240973b6eaeae5363559a33bbfc33646f702834 100644 (file)
@@ -23,8 +23,6 @@ You can use the `.link-*` classes to colorize links. Unlike the [`.text-*` class
 
 ## Link utilities
 
-<AddedIn version="5.3.0"/>
-
 Colored links can also be modified by our [link utilities]([[docsref:/utilities/link/]]).
 
 <Example code={[
index 51e4f98aa94f78a227c1db473f42e326f1b6ffd2..e1dfb925734fa773ee4df87e2ab461fc59335880 100644 (file)
@@ -2,8 +2,6 @@
 title: Focus ring
 description: Utility classes that allows you to add and modify custom focus ring styles to elements and components.
 toc: true
-added:
-  version: "5.3"
 ---
 
 import { getData } from '@libs/data'
index 201113142bbf2be4e07131df5c38e944bdf47c33..d4914cdc3397a1e2b7c29f7cb1dbc5c45f31d57c 100644 (file)
@@ -2,8 +2,6 @@
 title: Icon link
 description: Quickly create stylized hyperlinks with Bootstrap Icons or other icons.
 toc: true
-added:
-  version: "5.3"
 ---
 
 The icon link helper component modifies our default link styles to enhance their appearance and quickly align any pairing of icon and text. Alignment is set via inline flexbox styling and a default `gap` value. We stylize the underline with a custom offset and color. Icons are automatically sized to `1em` to best match their associated text’s `font-size`.
index 79b19919953bf2b10993570b883b6d16ef24f58a..6cce2804db717911c8406e4be3457635dd37575b 100644 (file)
@@ -2,8 +2,6 @@
 title: Stacks
 description: Shorthand helpers that build on top of our flexbox utilities to make component layout faster and easier than ever.
 toc: true
-added:
-  version: "5.1"
 ---
 
 Stacks offer a shortcut for applying a number of flexbox properties to quickly and easily create layouts in Bootstrap. All credit for the concept and implementation goes to the open source [Pylon project](https://almonk.github.io/pylon/).
index 006c0f2c8793134bf847d9ef8dcbd60e428e7301..4a1efc16d42e3aeaf9dc6bbfad475ec977e4398b 100644 (file)
@@ -2,8 +2,6 @@
 title: Vertical rule
 description: Use the custom vertical rule helper to create vertical dividers like the `<hr>` element.
 toc: true
-added:
-  version: "5.1"
 ---
 
 ## How it works
index ac318cc618068173fa8e131ddde4aef0f605526b..a302ad8ea141d328d1bc84b09c6ef54419960134 100644 (file)
@@ -2,8 +2,6 @@
 title: CSS Grid
 description: Learn how to enable, use, and customize our alternate layout system built on CSS Grid with examples and code snippets.
 toc: true
-added:
-  version: "5.1"
 ---
 
 Bootstrap’s default grid system represents the culmination of over a decade of CSS layout techniques, tried and tested by millions of people. But, it was also created without many of the modern CSS features and techniques we’re seeing in browsers like the new CSS Grid.
index 365d01eb3ae2af52da34c44f1bfb99aedf62d5f9..720132e422135bfdb0777a470de65d1888177ccb 100644 (file)
@@ -42,8 +42,6 @@ Do you need a gradient in your custom CSS? Just add `background-image: var(--bs-
 
 ## Opacity
 
-<AddedIn version="5.1.0" />
-
 As of v5.1.0, `background-color` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
 
 ### How it works
index 504044b7be45be8feda580110289ec9514a14031..09e1dc1b13f798d94516461d54de9afa0dcdd82e 100644 (file)
@@ -62,8 +62,6 @@ Or modify the default `border-color` of a component:
 
 ## Opacity
 
-<AddedIn version="5.2.0" />
-
 Bootstrap `border-{color}` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
 
 ### How it works
@@ -135,8 +133,6 @@ Use the scaling classes for larger or smaller rounded corners. Sizes range from
 
 ### Variables
 
-<AddedIn version="5.2.0" />
-
 <ScssDocs name="root-border-var" file="scss/_root.scss" />
 
 ### Sass variables
index b5dffd3eff84ccb296b1c156c1dd53e4d060cbb0..69a9fd3308c66cf2ebfde0f1c3b580b0af70089c 100644 (file)
@@ -31,8 +31,6 @@ Color utilities like `.text-*` that generated from our original `$theme-colors`
 
 ## Opacity
 
-<AddedIn version="5.1.0" />
-
 As of v5.1.0, text color utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
 
 ### How it works
index 7bfc5755ee44ef84b57136bd243192d9a86b9259..95c4f77a51553c6231488207a43879ac5d54f80c 100644 (file)
@@ -2,8 +2,6 @@
 title: Link
 description: Link utilities are used to stylize your anchors to adjust their color, opacity, underline offset, underline color, and more.
 toc: true
-added:
-  version: "5.3"
 ---
 
 import { getData } from '@libs/data'
index 89866ab5848d72674517421d7bcc56cc1b10a006..18df79203c10afd2c43ebfc9b0a3800899f4828f 100644 (file)
@@ -2,8 +2,6 @@
 title: Object fit
 description: Use the object fit utilities to modify how the content of a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element" target="_blank" rel="noopener noreferrer">replaced element</a>, such as an `<img>` or `<video>`, should be resized to fit its container.
 toc: true
-added:
-  version: "5.3"
 ---
 
 ## How it works
index 17fc6ac0690407215252a07a8dc2eaf43bd4b0b5..e459b4f319a755f5a00a2b6e235988fbd89c9386 100644 (file)
@@ -1,8 +1,6 @@
 ---
 title: Opacity
 description: Control the opacity of elements.
-added:
-  version: "5.1"
 ---
 
 The `opacity` property sets the opacity level for an element. The opacity level describes the transparency level, where `1` is not transparent at all, `.5` is 50% visible, and `0` is completely transparent.
index 4f0bf1e81756167d7155b4d652a0fceb1faad9b6..0549ae15f396dbabb2a69cda448291500080b990 100644 (file)
@@ -2,8 +2,6 @@
 title: Z-index
 description: Use our low-level `z-index` utilities to quickly change the stack level of an element or component.
 toc: true
-added:
-  version: "5.3"
 ---
 
 ## Example
index bd9f104484455906f391db1557af9852991f18b7..c5f54b15638ad8765218982bd4961f4f2348dd64 100644 (file)
@@ -8,6 +8,7 @@
 export declare global {
   export const AddedIn: typeof import('@shortcodes/AddedIn.astro').default
   export const BsTable: typeof import('@shortcodes/BsTable.astro').default
+  export const CSSVariables: typeof import('@shortcodes/CSSVariables.astro').default
   export const Callout: typeof import('@shortcodes/Callout.astro').default
   export const CalloutDeprecatedDarkVariants: typeof import('@shortcodes/CalloutDeprecatedDarkVariants.astro').default
   export const Code: typeof import('@shortcodes/Code.astro').default