diff --git a/site/src/components/shortcodes/AddedIn.astro b/site/src/components/shortcodes/AddedIn.astro deleted file mode 100644 index d9a26ce50e..0000000000 --- a/site/src/components/shortcodes/AddedIn.astro +++ /dev/null @@ -1,16 +0,0 @@ ---- -/* - * Outputs badge to identify the first version something was added - */ - -interface Props { - version: string -} - -const { version } = Astro.props ---- - -Added in v{version} diff --git a/site/src/components/shortcodes/CSSVariables.astro b/site/src/components/shortcodes/CSSVariables.astro new file mode 100644 index 0000000000..d316a797c2 --- /dev/null +++ b/site/src/components/shortcodes/CSSVariables.astro @@ -0,0 +1,13 @@ +--- +interface Props { + component: string + className?: string +} + +const { component, className } = Astro.props +--- + +

+ {component} use local CSS variables on .{className} for real-time customization. + Values for the CSS variables are set via Sass, so Sass customization is still supported, too. +

diff --git a/site/src/content/docs/components/accordion.mdx b/site/src/content/docs/components/accordion.mdx index 64bb59f728..5548962fed 100644 --- a/site/src/content/docs/components/accordion.mdx +++ b/site/src/content/docs/components/accordion.mdx @@ -149,9 +149,7 @@ Please read the [collapse accessibility section]([[docsref:/components/collapse# ### Variables - - -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. + diff --git a/site/src/content/docs/components/alerts.mdx b/site/src/content/docs/components/alerts.mdx index 68de62d1ac..9f436197e5 100644 --- a/site/src/content/docs/components/alerts.mdx +++ b/site/src/content/docs/components/alerts.mdx @@ -122,9 +122,7 @@ When an alert is dismissed, the element is completely removed from the page stru ### Variables - - -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. + diff --git a/site/src/content/docs/components/badge.mdx b/site/src/content/docs/components/badge.mdx index b3e574b6d8..01b6476a3e 100644 --- a/site/src/content/docs/components/badge.mdx +++ b/site/src/content/docs/components/badge.mdx @@ -54,8 +54,6 @@ You can also replace the `.badge` class with a few more utilities without a coun ## Background colors - - 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. `${themeColor.title}`)} /> @@ -72,9 +70,7 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger ### Variables - - -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. + diff --git a/site/src/content/docs/components/breadcrumb.mdx b/site/src/content/docs/components/breadcrumb.mdx index b30aaa560d..435ba128ff 100644 --- a/site/src/content/docs/components/breadcrumb.mdx +++ b/site/src/content/docs/components/breadcrumb.mdx @@ -86,9 +86,7 @@ For more information, see the [ARIA Authoring Practices Guide breadcrumb pattern ### Variables - - -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. + diff --git a/site/src/content/docs/components/buttons.mdx b/site/src/content/docs/components/buttons.mdx index 3cf99ae197..58da2a329f 100644 --- a/site/src/content/docs/components/buttons.mdx +++ b/site/src/content/docs/components/buttons.mdx @@ -190,9 +190,7 @@ document.querySelectorAll('.btn').forEach(buttonElement => { ### Variables - - -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. + diff --git a/site/src/content/docs/components/card.mdx b/site/src/content/docs/components/card.mdx index 1cf25220cf..b0fedd460b 100644 --- a/site/src/content/docs/components/card.mdx +++ b/site/src/content/docs/components/card.mdx @@ -379,8 +379,6 @@ Cards include various options for customizing their backgrounds, borders, and co ### Background and color - - 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. `
@@ -662,9 +660,7 @@ In `v4` we used a CSS-only technique to mimic the behavior of [Masonry](https:// ### Variables - - -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. + diff --git a/site/src/content/docs/components/close-button.mdx b/site/src/content/docs/components/close-button.mdx index ef70fccacc..96defaad15 100644 --- a/site/src/content/docs/components/close-button.mdx +++ b/site/src/content/docs/components/close-button.mdx @@ -29,9 +29,7 @@ Add `data-bs-theme="dark"` to the `.btn-close`, or to its parent element, to inv ### Variables - - -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. + diff --git a/site/src/content/docs/components/dropdowns.mdx b/site/src/content/docs/components/dropdowns.mdx index 22c7e07db2..79eb5239d3 100644 --- a/site/src/content/docs/components/dropdowns.mdx +++ b/site/src/content/docs/components/dropdowns.mdx @@ -927,9 +927,7 @@ By default, the dropdown menu is closed when clicking inside or outside the drop ### Variables - - -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. + diff --git a/site/src/content/docs/components/list-group.mdx b/site/src/content/docs/components/list-group.mdx index 09938f6e65..5d4727cbd5 100644 --- a/site/src/content/docs/components/list-group.mdx +++ b/site/src/content/docs/components/list-group.mdx @@ -253,9 +253,7 @@ You can use `.stretched-link` on `