diff options
| author | Bobby <[email protected]> | 2024-08-16 20:47:33 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-16 20:47:33 -0400 |
| commit | 6b28433d9cfde435be8ec2bd6cf91e6324d08865 (patch) | |
| tree | 8343c27b8b95ff5639233e81cf157f92e5688466 /site/layouts/shortcodes/callout-deprecated-dark-variants.html | |
| parent | d53094ec16ba385faae2973ddee648698b32ab24 (diff) | |
| parent | 048f56f51460df75e92a2f7b472e1c56baeb68f7 (diff) | |
| download | bootstrap-main.tar.xz bootstrap-main.zip | |
Diffstat (limited to 'site/layouts/shortcodes/callout-deprecated-dark-variants.html')
| -rw-r--r-- | site/layouts/shortcodes/callout-deprecated-dark-variants.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/site/layouts/shortcodes/callout-deprecated-dark-variants.html b/site/layouts/shortcodes/callout-deprecated-dark-variants.html new file mode 100644 index 000000000..e682a7fbe --- /dev/null +++ b/site/layouts/shortcodes/callout-deprecated-dark-variants.html @@ -0,0 +1,9 @@ +{{- /* Outputs message about dark mode component variants being deprecated in v5.3. */ -}} + +{{- $component := .Get 0 -}} + +<div class="bd-callout bd-callout-warning"> + <p> + <strong>Heads up!</strong> Dark variants for components were deprecated in v5.3.0 with the introduction of color modes. Instead of adding <code>.{{ $component }}-dark</code>, set <code>data-bs-theme="dark"</code> on the root element, a parent wrapper, or the component itself. + </p> +</div> |
