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 | 554 +++++++++++------------------ 2 files changed, 224 insertions(+), 337 deletions(-) diff --git a/site/assets/scss/_content.scss b/site/assets/scss/_content.scss index e55a7aa63473..cc22ffe11059 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 edfbefc4e915..df0abea3df43 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -7,494 +7,374 @@ 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`. -- The longstanding [Missing border radius on input group with validation feedback bug](https://github.com/twbs/bootstrap/issues/25110) is finally fixed by adding an additional `.has-validation` class to input groups with validation. -- Promoted the Floating labels example to fully supported form component. [See the new Floating labels page.]({{< docsref "/forms/floating-labels" >}}) -- File inputs now use the `.form-control` class and don't require JavaScript, additional HTML, or additional classes. [See #31955](https://github.com/twbs/bootstrap/pull/31955). -- Added `cursor:pointer` to `.form-control-color` color inputs. +- Rearranged source Sass files under `scss/forms/`, including input group styles. -### Utilities +
-- **Text utilities:** - - Added `.fs-*` utilities for `font-size` utilities (with RFS enabled). These use the same scale as HTML's default headings (1-6, large to small), and can be modified via Sass map. - - Renamed `.font-weight-*` utilities as `.fw-*` for brevity and consistency. - - Renamed `.font-style-*` utilities as `.fst-*` for brevity and consistency. -- Added `.d-grid` to display utilities -- Added new `gap` utilities (`.gap`) for CSS Grid layouts -- Removed `.rounded-sm` and `rounded-lg`, and introduced `.rounded-0` to `.rounded-3`. [See #31687](https://github.com/twbs/bootstrap/pull/31687). +## Components -## v5.0.0-alpha2 +- 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). -### Sass +### Accordion -- Added default parameters to each `border-radius` mixin. [See #31571](https://github.com/twbs/bootstrap/pull/31571). -- Updated the next breakpoint when targeting only the `xs` breakpoint. [See #31500](https://github.com/twbs/bootstrap/pull/31500). -- `box-shadow` mixins now allow `null` values and drop `none` from multiple arguments. [See #30394](https://github.com/twbs/bootstrap/pull/30394). +- Added [new accordion component]({{< docsref "/components/accordion" >}}! -### Docs +### Alerts -- Renamed "Navs" page to "Navs & Tabs" -- Renamed "Screen readers" helper page to "Visually hidden", and filename to `visually-hidden` -- Renamed "Checks" page to "Checks & radios", and filename to `checks-radios` -- Improved documentation of check/radio powered button groups -- Improved skip links in our docs. -- Redesigned docs navigation for larger tap targets on mobile and a streamlined subnav. -- [#31114](https://github.com/twbs/bootstrap/pull/31114): Improved form documentation with regards to accessibility. +- Alerts now have [examples with icons]({{< docsref "/components/alerts#icons" >}}). -### Layout +- Removed custom styles for `
`s in each alert since they already use `currentColor`. -- Container horizontal padding updated to match the gutter size of `.row`s. -- [#31439](https://github.com/twbs/bootstrap/pull/31439): Removed `flex: 1 0 100%` from rows due to regressions in grid behavior. +### Badges -### Reboot +- Breaking Dropped all `.badge-*` color classes for background utilities (e.g., use `.bg-primary` instead of `.badge-primary`). -- Updated `th` styling to use a default `null` value for `font-weight` and inherit `text-align` instead of setting explicitly. +- Breaking Dropped `.badge-pill`—use the `.rounded-pill` utility instead. -### Colors +- Breaking Removed hover and focus styles for `` and `