diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index b334a80f40..6499846a15 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -7,18 +7,35 @@ aliases: "/migration/" toc: true --- -## Browser support +## v5.0.0-alpha2 + +### Components + +#### Popovers + +- Renamed `whiteList` option to `allowList` + +#### Tooltips + +- Renamed `whiteList` option to `allowList` + +--- + +## v5.0.0-alpha1 + +### Browser support See the browser and devices page for details on what is currently supported in Bootstrap 5. Since v4, here's what's changed to our browser support: - Dropped support for Internet Explorer 10 and 11 -- Dropped support for Firefox NN - MM -- Dropped support for Safari NN -- Dropped support for iOS Safari NN -- Dropped support for Chrome NN -- Dropped support for Android NN +- Dropped support for Microsoft Edge < 16 +- Dropped support for Firefox < 60 +- Dropped support for Safari < 10 +- Dropped support for iOS Safari < 10 +- Dropped support for Chrome < 60 +- Dropped support for Android < 6 -## Sass +### Sass Changes to our source Sass files and compiled CSS. @@ -51,22 +68,22 @@ Changes to our source Sass files and compiled CSS. - The `media-breakpoint-down()` uses the breakpoint itself instead of the next breakpoint. Use `media-breakpoint-down(lg)` instead of `media-breakpoint-down(md)` to target viewports smaller than the `lg` breakpoint. - The `media-breakpoint-between()` mixin's second parameter also uses the breakpoint itself instead of the next breakpoint. Use `media-between(sm, lg)` instead of `media-breakpoint-between(sm, md)` to target viewports between the `sm` and `lg` breakpoints. -## JavaScript +### JavaScript Changes to our source and compiled JavaScript files. - Dropped jQuery dependency and rewrote plugins to be in regular JavaScript. - Removed underscore from public static methods like `_getInstance()` → `getInstance()`. -## Color system +### Color system We've updated the color system that powers Bootstrap to improve color contrast and provide a much more extensive set of colors. -- Updated blue and pink base colors (`-500`) to ensure AA contrast. +- Updated blue and pink base colors (`-500`) to ensure WCAG 2.1 AA contrast. - Added new tints and shades for every color, providing nine separate colors for each base color, as new Sass variables. - To support our color system, we've added new custom `tint-color()` and `shade-color()` functions to mix our colors appropriately. -## Grid and layout +### Grid and layout Changes to any layout tools and our grid system. @@ -79,7 +96,7 @@ Changes to any layout tools and our grid system. - The gutter width is now set in `rem` and decreased from `30px` to `1.5rem` (24px). - `bootstrap-grid.css` now only applies `box-sizing: border-box` to the column instead of resetting the global box-sizing. This way the grid system can be used, even if `box-sizing: border-box` is not applied to each element. -## Content, Reboot, etc +### Content, Reboot, etc Changes to Reboot, typography, tables, and more. @@ -94,14 +111,14 @@ Changes to Reboot, typography, tables, and more. - `.text-*` utilities do not add hover and focus states to links anymore. `.link-*` helper classes can be used instead. [See #29267](https://github.com/twbs/bootstrap/pull/29267) - Drop `.text-justify` class. [See #229793](https://github.com/twbs/bootstrap/pull/29793) -## Typography +### Typography - Removed `$display-*` variables for a new `$display-font-sizes` Sass map. - Removed individual `$display-*-weight` variables for a single `$display-font-weight`. - Added two new `.display-*` heading styles, `.display-5` and `.display-6`. - Resized existing display headings for a slightly more consistent set of `font-size`s. -## Forms +### Forms - Rearranged form documentation under its own top-level section. - Split out old Forms page into several subpages @@ -128,19 +145,19 @@ Changes to Reboot, typography, tables, and more. - Dropped `.input-group-append` and `.input-group-prepend`. You can now just add buttons and `.input-group-text` as direct children of the input groups. - Form labels now require the `.form-label` class. Sass variables are now available to style form labels to your needs. [See #30476](https://github.com/twbs/bootstrap/pull/30476) -## Components +### Components - Unified `padding` values for alerts, breadcrumbs, cards, dropdowns, list groups, modals, popovers, and tooltips to be based on our `$spacer` variable. [See #30564](https://github.com/twbs/bootstrap/pull/30564). -### Disabled states +#### Disabled states - Disabled states of the buttons, close button, pagination link & form range now have `pointer-events: none` added. This simplifies our codebase and makes it easier to override active states in CSS. [#29296](https://github.com/twbs/bootstrap/pull/29296). -### Alerts +#### Alerts - **Todo:** Remove auto-darkening of `