Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2022-11-12 20:40:46 +0300
committerMark Otto <markdotto@gmail.com>2022-11-12 20:40:46 +0300
commit63cb8e00a328667d2cbfcbd8b4d04b1327317e94 (patch)
treec46857d543de6132edd26e77a843ed7017ef165c
parentd1cea67ed066f1179155c70a80e780f5c86e5bb3 (diff)
Update migration guide
-rw-r--r--site/content/docs/5.2/migration.md32
1 files changed, 28 insertions, 4 deletions
diff --git a/site/content/docs/5.2/migration.md b/site/content/docs/5.2/migration.md
index e3e09b62c5..6e1d1efd9b 100644
--- a/site/content/docs/5.2/migration.md
+++ b/site/content/docs/5.2/migration.md
@@ -13,11 +13,15 @@ toc: true
### Color modes!
-- Global support for light (default) and dark modes. Set color theme globally on the `:root` element, on groups of elements and components with a wrapper class, or directly on components. Color modes replace dark variants for components, so `.carousel-dark`, `.dropdown-menu-dark`, and `.navbar-dark` are deprecated.
+Learn more by reading the new [color modes documentation]({{< docsref "/customize/color-modes" >}}).
-- New extended color system. We've added new theme colors (but not in `$theme-colors)`) for a more nuanced, system-wide color palette with new secondary, tertiary, and emphasis colors for `color` and `background-color`. These new colors are available as Sass variables, CSS variables, and utilities.
+- **Global support for light (default) and dark color modes.** Set color mode globally on the `:root` element, on groups of elements and components with a wrapper class, or directly on components.
-- We've also expanded our theme color Sass variables, CSS variables, and utilities to include text emphasis, subtle background colors, and subtle border colors.
+ <span class="badge text-warning-emphasis bg-warning-subtle">Deprecated</span> Color modes replace dark variants for components, so `.carousel-dark`, `.dropdown-menu-dark`, and `.navbar-dark` are deprecated.
+
+- **New extended color system.** We've added new theme colors (but not in `$theme-colors)`) for a more nuanced, system-wide color palette with new secondary, tertiary, and emphasis colors for `color` and `background-color`. These new colors are available as Sass variables, CSS variables, and utilities.
+
+- We've also expanded our theme color Sass variables, CSS variables, and utilities to include text emphasis, subtle background colors, and subtle border colors. These are available as Sass variables, CSS variables, and utilities.
- Adds new `_variables-dark.scss` stylesheet to house dark-mode specific overrides.
@@ -29,16 +33,36 @@ toc: true
- Adds additional variables for alerts, `.btn-close`, and `.offcanvas`.
+- Converts links to use CSS variables for their color with `--bs-link-color-rgb` and `--bs-link-opacity`. This allows us to use the `rgba()` function to set the link color and customize its alpha layer opacity with ease. Also includes `--bs-link-decoration` and `--bs-link-hover-decoration` for controlling `text-decoration`.
+
+- `--bs-border-width` is now being used in more components for greater control over default global styling.
+
+### Components
+
+#### Alerts
+
+- Alert variants are now styled via CSS variables.
+
+- <span class="badge text-warning-emphasis bg-warning-subtle">Deprecated</span> The `.alert-variant()` mixin is now deprecated. We now [use the Sass loop]({{< docsref "/components/alerts#sass-loop" >}}) directly to modify the component's default CSS variables for each variant.
+
+### Forms
+
+- Floating form labels now have a `background-color` to fix support for `<textarea>` elements. Additional changes have been made to also support disabled states and more.
+
+- Fixed display of date and time inputs in WebKit based browsers.
+
### Utilities
- <span class="badge text-warning-emphasis bg-warning-subtle">Deprecated</span> `.text-muted` will be be replaced by `.text-body-secondary` in v6.
With the addition of the expanded theme colors and variables, the `.text-muted` variables and utility have been deprecated with v5.3.0. Its default value has also has been reassigned to the new `--bs-secondary-color` CSS variable to better support color modes. It will be removed in v6.0.0.
-- Adds new `.overflow-x`, `.overflow-y`, and several `.object-fit-*` utilities. _The object-fit property is used to specify how an `<img>` or `<video>` should be resized to fit its container. Offers a responsive alternative to using `background-image` for a resizable fill/fit image._
+- Adds new `.overflow-x`, `.overflow-y`, and several `.object-fit-*` utilities. _The object-fit property is used to specify how an `<img>` or `<video>` should be resized to fit its container, giving us a responsive alternative to using `background-image` for a resizable fill/fit image._
- Adds new `.fw-medium` utility.
+- Added new [`.z-*` utilities]({{< docsref "/utilities/z-index" >}}) for `z-index`.
+
For a complete list of changes, [see the v5.3.0 project on GitHub](https://github.com/twbs/bootstrap/projects/).
## v5.2.0