We’re trying to move fast and keep the future of the project and the web in general in mind, so this release is an important milestone for us. We’re balancing practical migration from v4 with meaningful changes that reflect the ever-changing front-end community.
We think you’ll love this release, so keep on reading and let us know what you think!
We’ve improved a handful of components in this release, and even dropped one for some new and improved utilities.
We’ve dropped the
.card based accordion
for a brand new
solving several bugs in the process. Our new accordion still uses
support it, it’s better and easier than ever to use.
The new accordion includes Bootstrap Icons as chevron icons
indicating state and click-ability. We’ve included support for a
flush accordion (add
remove the outer borders, allowing for easier placement inside
New block buttons
Block buttons are no more in v5—we’ve dropped the
.btn-block class for
This allows for the same behavior and style, but with much greater
control over spacing, alignment, and even responsive layout
We’re always looking for new ways to improve our documentation, and this release is no different. We have a ton of changes big and small.
We’ve added a keyboard shortcut to focus you on the search field. Hit Ctrl + / to trigger it.
We’ve also rewritten the docs sidebar to use actual
elements instead of anchors, and improved the focus styling.
Three important and helpful changes to our Sass source code:
We’ve switched to Dart Sass with LibSass being deprecated. We’ve been testing our builds with Dart Sass for a while and decided to make the switch with LibSass being deprecated just a couple of weeks ago. We’re holding on the Sass modules for now.
The color system which worked with
$theme-color-intervalwas removed in favor of a new color system. All
darken()functions in our codebase are replaced by
shade-color(). These functions will mix the color with either white or black instead of changing its lightness by a fixed amount. The
scale-color()will either tint or shade a color depending on whether its weight parameter is positive or negative. See #30622 for more details.
We’ve added a Sass variable for CSS custom property prefixes.
- Simplified dropdown’s placement
- Removed redundant polyfills since we dropped IE and Legacy Edge
- Fixed the carousel
data-intervalbug by checking for
data-intervalon the first slide
Manipulator.toggleClassto simplify some code since we only used it one place
Utility classes are incredibly powerful in Bootstrap, especially with our new utilities API.
With our first beta, we’ve overhauled our API docs to provide clearer examples and information on adding, modifying, removing, and extending our default utilities.
In addition, we’ve added some new default utilities to make life a little easier:
.rounded-3for new small, medium, and large
Our next release will also add another powerful feature to our utilities, pseudo-class support!
Forms have some exciting changes thanks to the addition of floating labels as a fully-fledged form layout option and a new file input.
Floating labels include support for textual inputs, selects, and textareas. We have one limitation with textareas where multiple lines of text can be obscured by the floating label. We’re working on fixes for this, so if you have ideas, please let us know!
New file input
We’ve dropped our custom
.form-file class for
additional styles on the
file input styles functional—the new form file is all CSS!
Input group rounded corners
Beyond that, we’ve finally resolved ourselves to adding a new
class to fix the rounded corners on input groups when using
validation. Add the
enable validation messages inside input groups without any visual
regressions. The good news is this is also being backported to v4 in our next release.
In addition, we’ve made a few other form related improvements:
- Removed explicit
heightfrom most of our form controls.
- Fixed the disabled checkbox toggle buttons
- Added docs examples for disabled
Have some form feature requests or improvements we should consider? Please open an issue!
Quality of life
Lastly, across the board we’ve made some minor updates to browser support, Reboot styling, components, and more
- Moved our preferred CDN from BootstrapCDN to jsDelivr
- Dropped support for Legacy Edge (woohoo!)
- Updated to Node.js 14 and PostCSS 8.x
- Removed obsolete prefixes in our CSS
cursor: pointerand heights to color inputs
background-imageis no longer clipped
sans-seriffont selection in Ubuntu
- Spinners now slow down when reduced motion is enabled rather than stopping outright
- Fix inconsistent whitespace in breadcrumbs
Coming in Beta 1
Beta 1 will be a more narrowly focused release and we’re hoping to ship these final breaking changes as part of it.
RTL! RTL is still coming! The PR is being reviewed by our team would like it to land in Beta 1 to ensure we can get some testing from the community.
Updating to Popper.js v2. Still on our radar, but moving slower than we anticipated due to some of the differences in the major release. See the PR for details.
Namespaced data attributes to help keep our functionality clearly separated from your own. See the PR.
Updated utilities API with pseudo-classes support via a
stateoption. Add any space-separated list of states to get additional utilities for that pseudo-class. See the work-in-progress PR for details.
For a more up to date list of changes, be sure to follow along with the v5 Beta project board.
Head to https://v5.getbootstrap.com to explore the new release. We’ve also published this updated as a pre-release to npm, so if you’re feeling bold or are curious about what’s new, you can pull the latest in that way.
npm i bootstrap@next
Support the team