From 48ae5a7149d30d7d80cecbaaabaa88f7679c9172 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 5 May 2021 08:24:26 -0700 Subject: [PATCH] Rewrite migration guide (#33834) - De-duplicates bulk of the content for a migration from v4 to v5 - Adds clear breaking labels where appropriate - Leaves room for more guidance around doing the actual migration --- site/assets/scss/_content.scss | 7 + site/content/docs/5.0/migration.md | 708 ++++++++++++----------------- 2 files changed, 301 insertions(+), 414 deletions(-) diff --git a/site/assets/scss/_content.scss b/site/assets/scss/_content.scss index e55a7aa634..cc22ffe110 100644 --- a/site/assets/scss/_content.scss +++ b/site/assets/scss/_content.scss @@ -21,6 +21,13 @@ > ul li, > ol li { margin-bottom: .25rem; + + // stylelint-disable selector-max-type + > ul { + margin-top: -.5rem; + margin-bottom: 1rem; + } + // stylelint-enable selector-max-type } // Override Bootstrap defaults diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index edfbefc4e9..df0abea3df 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -7,317 +7,57 @@ aliases: "/migration/" toc: true --- -## v5.0.0 +## Dependencies -### Components +- Dropped jQuery. +- Upgraded from Popper v1.x to Popper v2.x. +- Replaced Libsass with Dart Sass as our Sass compiler given Libsass was deprecated. +- Migrated from Jekyll to Hugo for building our documentation -- Added new `.offcanvas-top` modifier class to round out offcanvas placement options. -- Offcanvas header elements are now vertically aligned with one another. -- Alerts now have [examples with icons]({{< docsref "/components/alerts#icons" >}}). -- Improved spinner vertical alignment. +## Browser support -### Forms +- Dropped Internet Explorer 10 and 11 +- Dropped Microsoft Edge < 16 (Legacy Edge) +- Dropped Firefox < 60 +- Dropped Safari < 10 +- Dropped iOS Safari < 10 +- Dropped Chrome < 60 +- Dropped Android < 6 -- Validation icons are no longer applied to ``s with `multiple`. + +- Rearranged source Sass files under `scss/forms/`, including input group styles. + +
+ +## 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 +### Accordion -- 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). +- Added [new accordion component]({{< docsref "/components/accordion" >}}! -#### Alerts +### Alerts -- Removed auto-darkening of `
` elements in `.alert-*` class variants. `
`s use `rgba()` for their color, so these should naturally blend anyway. +- Alerts now have [examples with icons]({{< docsref "/components/alerts#icons" >}}). -#### Badges +- Removed custom styles for `
`s in each alert since they already use `currentColor`. -Badges were overhauled to better differentiate themselves from buttons and to better utilize utility classes. +### Badges -- Removed and replaced `.badge` modifier classes with background utility classes (e.g., use `.bg-primary` instead of `.badge-primary`) -- Removed `.badge-pill` for the `.rounded-pill` utility class -- Removed badge's hover and focus styles for `a.badge` and `button.badge`. +- Breaking Dropped all `.badge-*` color classes for background utilities (e.g., use `.bg-primary` instead of `.badge-primary`). -#### Buttons +- Breaking Dropped `.badge-pill`—use the `.rounded-pill` utility instead. -- The checkbox/radio toggle is removed from the button plugin in favor of a CSS only solution, which is documented in the [form checks and radios]({{< docsref "/forms/checks-radios#toggle-buttons" >}}) docs. The `.btn-check` class can be added to inputs, any label with `.btn` and modifier class can be used to theme the labels. [See #30650](https://github.com/twbs/bootstrap/pull/30650). +- Breaking Removed hover and focus styles for `` and `