Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

Bootstrap 6 Alpha 2: what changes for v5 sites

Table of contents · 6 items

For people who look after corporate sites or admin panels built with Bootstrap 5 and still running as they are, news that "Bootstrap 6 is out" raises the question of whether they will eventually need to rebuild.

Bootstrap released 6 Alpha 1 on October 8 and Alpha 2 on November 23. Both are alpha releases (a trial stage). The Alpha 1 announcement says the content may change significantly before the beta, and that more alpha releases will come before entering the beta and RC (release candidate) stages. As of November 30, installing with npm install bootstrap on npm still gives you 5.3.9 (November 11) from the 5.x line, and 6.x is distributed under the next tag.

Based on Bootstrap's official blog and migration guide, and on the results of applying 5.3.9 and 6.0.0-alpha.2 to the same page in a test environment, this article summarizes what changes for v5 sites and what to do now.

v5 support continues for now

For cases where 6's minimum supported browsers do not fit, the Alpha 1 announcement states that "Bootstrap 5 will continue to be available and supported." It also says 5.4.0 will be released as soon as possible, after which an end-of-life date for 5.x will be announced. As of November 30, no end-of-life date for 5.x has been given.

5.3.9 was released for 5.x on November 11. It adds the Modal size .modal-xxl and includes fixes for Carousel, ScrollSpy and Tooltip. v5 sites can first upgrade to 5.3.9 and continue maintenance within 5.x.

Note that as of November 30, the top page of the official site (getbootstrap.com) points to the 6.0.0-alpha.2 documentation. In the version switcher menu, 5.3.x is labeled "Latest" and 6.0.x is labeled "Alpha." When looking things up for v5 site maintenance, open the /docs/5.3/ documentation.

Major changes in 6

Minimum supported browsers

The Alpha 2 migration guide sets the minimums at Chrome and Edge 138, Firefox 147, and Safari 26 (macOS and iOS). These were raised further from Chrome and Edge 130, Firefox 132 and Safari 18 at the time of Alpha 1. 5.x supports Chrome and Firefox 60 and Safari 12 (iOS 12) and later.

The guide states that 6 has no fallbacks for browsers older than the minimums and that "pages will not display correctly in older browsers," and asks you to check your own analytics before upgrading. Safari 26 applies to both macOS and iOS. Check how many of your visitors use browsers older than the minimums, site by site, using GA4 or similar tools (our editorial recommendation).

JavaScript becomes ESM only

6's JavaScript is distributed only in ES Modules format. <script> now requires type="module", and the global variable window.bootstrap available in v5 is gone. jQuery support has also been dropped. Code written in v5 as bootstrap.Tooltip.getOrCreateInstance(el) should be rewritten to import { Tooltip } from ....

Component and class names

  • Modal is replaced by Dialog (a component that uses the browser's <dialog> element); .modal becomes .dialog, and data-bs-toggle="modal" becomes data-bs-toggle="dialog"
  • Dropdown is replaced by Menu, and Offcanvas by Drawer
  • .btn-primary becomes a combination of a style class and a color class, as in class="btn-solid theme-primary"
  • Breakpoint-specific classes become prefixes: .col-lg-6 becomes .lg:col-6, .d-md-none becomes .md:d-none, and so on
  • Navigation on narrow screens opens with Drawer instead of Collapse

If you customize with Sass, loading changes from @import to @use.

If you are trying Alpha 1

Alpha 2 also fixed two XSS (cross-site scripting) security advisories affecting Alpha 1. Both are medium severity and affect the Datepicker and Toggler components newly added in 6. The only affected version is 6.0.0-alpha.1; 5.x is not affected. Sites trying Alpha 1 should upgrade to Alpha 2.

Results of applying 6 as-is to a v5 page

We built a test page the Bootstrap 5 way, with navigation, a heading, buttons, three columns of cards, a dismissible alert and a modal. We swapped only the CSS and JavaScript files from 5.3.9 to 6.0.0-alpha.2 and rendered the page in Chromium 158 at widths of 1280px and 390px (Playwright, once each).

Diagram showing the same Bootstrap 5 sample page rendered with 5.3.9 and 6.0.0-alpha.2. At a width of 1280px, 5.3.9 lined up three cards side by side at 356px wide, while 6.0.0-alpha.2 stacked them vertically at 1176px wide. btn-primary was blue in 5.3.9 and gray in 6.0.0-alpha.2. The JavaScript caused a syntax error in 6.0.0-alpha.2. Of the 49 classes in the 5.3.9 CSS, 24 were missing from the 6.0.0-alpha.2 CSS.

  • Grid: In 5.3.9, the cards were laid out in three columns at a width of 1280px. In 6.0.0-alpha.2, .col-md-6 and .col-lg-4 had no effect, and the three cards stacked vertically at full width
  • Buttons: The blue background of .btn-primary disappeared, leaving a gray button
  • Navigation: It stayed collapsed even at a width of 1280px, showing only the menu button
  • JavaScript: Loading the 6.0.0-alpha.2 file without type="module" stopped with the error "Unexpected token ‘export’," and the modal did not open when the button was clicked
  • Classes: Of the 50 classes used on the page, 49 were in the 5.3.9 CSS, and 24 of those were missing from the 6.0.0-alpha.2 CSS

The result is that you cannot migrate just by swapping the CSS file; you need to rewrite HTML class names and how JavaScript is loaded. The sample is a single page built for testing, and the amount of rewriting will vary with the number and structure of components on an actual site.

What v5 sites should do now (editorial recommendation)

  1. Upgrade to 5.3.9. This is an update within 5.x, and no HTML changes are needed. If you load it from a CDN, specify the version, as in bootstrap@5.3.9. Loading from jsDelivr without a version returns 5.3.9 as of November 30, but it may switch to 6 once 6 becomes a stable release and npm's latest changes to 6. We covered the approach of pinning versions in our htmx 4 article
  2. Check browser versions in your analytics. Record the share of visitors on Safari below 26 and Chrome below 138 each month
  3. Take stock of the components you use. Identify where Modal, Dropdown, Offcanvas, Carousel and Navbar are used, and any JavaScript that uses the bootstrap. global variable. This gives you material for estimating what needs rewriting for 6
  4. Decide on migrating to 6 together with your plans for a rebuild or redesign. Alpha 2 is an alpha release, and no timeline for the stable release has been given. Alpha 2 also brought changes from Alpha 1, such as Chip input (an input field component) being replaced by Combobox

Bootstrap's official repository also includes a file (skills/bootstrap-v5-v6-migration) that summarizes the steps for migrating from 5 to 6 for AI coding agents. The guide says to verify the agent's changes against the migration guide (we did not use it in this article).

For how to handle sites that still use jQuery, see our jQuery article, and for organizing class naming, our article on CSS class names is also helpful.

Scope of verification

On November 30, 2026, we reviewed Bootstrap's official blog posts ("Bootstrap 6 Alpha" on October 8, "Bootstrap 5.3.9" on November 11, and "Bootstrap 6 Alpha 2" on November 23), the 6.0 migration guide and browser support page on getbootstrap.com, the 5.3 browser support page, the source of the migration guide at the v6.0.0-alpha.2 tag of twbs/bootstrap, two security advisories in the repository (GHSA-hhp5-vh47-5858 and GHSA-pj28-6c95-2682), the npm publication dates and tags, and the version jsDelivr returns when no version is specified (desk research). In addition, on November 30, in a test environment (Node.js v22.23.5, Playwright, Chromium 158), we applied bootstrap 5.3.9 and 6.0.0-alpha.2 to a single test page and compared rendering and behavior (hands-on testing, one run each). We did not check rendering in Safari or Firefox, rendering after rewriting the markup for 6.0.0-alpha.2, Sass builds, or use of the migration skill.

For maintenance of sites built with Bootstrap, or help deciding the timing and scope of a redesign, please contact us via Website production and redesign consultation.

References

Share this articleXFacebook
Kakeru Suzuki

Fascinated by the possibilities of technology, has had a deep interest in programming and digital art since student days

Turn this article's theme into your company's next step

Starting from what you want to achieve with your website.

We organize user goals, required features, and ongoing maintenance structures to determine the first steps in development and improvement.

  • Website objectives
  • Features and usability
  • Post-launch operations
Consult on web development and improvements

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles via email · Read the web production guide
Free download

Complete Guide to Web Production: Costs, Vendor Selection & Traffic Acquisition [2026 Edition]

We have compiled cost benchmarks, vendor selection criteria, and traffic acquisition strategies into a PDF.

The PDF and newsletter emails are currently in Japanese.

You will also be subscribed to our newsletter. You can unsubscribe at any time.