Bootstrap v5.2.1 is here with fixes from our latest minor release, v5.2. As a patch release, these changes are limited to bug fixes, documentation updates, and some dependency updates.
We’ve also continued to iterate on a few other projects to help folks get up and running with Bootstrap with npm, other JS frameworks, and various build tools. Keep reading to learn more.
We’ve updated our
to work around an apparent bug in
postcss-values-parser that prevented our source
Sass files from compiling properly when building with React and
PostCSS. The fix was to reverse the order of our multiplication
calc() functions. Be aware you may need to make
similar modifications depending on your own
We’ve also addressed some longstanding issues around button focus and
active styling, in particular for checkbox and radio buttons.
On mobile devices, input-based buttons have trouble shedding their
focus styles. This has been resolved in v5.2.1 with a change from
:focus-visible for our
.btns. Now, checkbox and radio buttons no
longer change their
:focus-visible and they receive no
.btns still have their
familiar hover and focus styles.
We debated not including the button focus change in v5.2.1, but felt it was important enough to close several bugs. Let us know what you think and we’ll continue to refine our implementation.
In addition to the changes above, we’ve fixed bugs across several components:
colorvalue to use the
$accordion-button-colorSass variable instead of our color contrast function
transparentdefault hover border color CSS variable for buttons to fix a visual regression
.btn-linkno longer has a gradient when
$enable-gradientsis set to
z-indexvalues to ensure proper rendering of validated form fields Floating labels now reset their
text-alignto ensure consistent styling
- List Groups
list-group-itemselectors to better support nested imports of Bootstrap’s CSS
.modal-dialogbut end outside it, and respond to clicks that start and end outside
border-radiusvalues inside pagination components
- Tooltips & Popovers
selector, dynamic content, and disposed tooltips using
trigger: "manual"showing and immediately hiding when calling
- Updated Autoprefixer to fix warnings of the
color-adjustproperty (thanks to @julien-deramond on our team for reporting an issue upstream here)
- Searching our docs on mobile has been improved with the search field now always visible on responsive, narrow viewports
- Removed links to and mentions of Slack from across the codebase, as we intend to shutter Slack in favor of GitHub Discussions
- Reintroduced proper
outlinestyles for docs code samples and buttons when
As mentioned over a month ago, we made the decision to close down our community Slack channel. Slack isn’t great at managing a large scale community and it’s prohibitively expensive as well for a community the size of ours (the Slack was over 45,000 people!). Instead of using Slack or similar tool, we’re encouraging folks to use our Discussions tab on GitHub.
Make sure to checkout (pun intended!) our latest project, the twbs/examples repository! The examples project includes functional demos for all sorts of environments and JS frameworks, with more planned! You can even open every example in StackBlitz and edit them in the browser.
- Starter – CDN links for our CSS and JS
- Sass & JS — Import Sass, Autoprefixer, Stylelint, and our JS bundle via npm
- Sass & ESM JS — Import Sass, Autoprefixer, and Stylelint via npm, and then load our ESM JS with a shim
- Webpack - Import and bundle Sass and JS with Webpack
- Parcel - Sass, JS via Parcel
- Vite - Sass, JS via Vite
- Bootstrap Icons font - Import and compile Sass, Stylelint, PurgeCSS, and our icon font
Have an idea for a new starter example? Feel free to open an issue or pull request!
v4 starter project
We’ve shipped a v2.0.0 update to the twbs/bootstrap-npm-starter project. This release includes Bootstrap v4.6.2, Bootstrap Icons v1.9.1, a new live reload feature for local development, and several dependency updates. This project will remain dedicated to Bootstrap 4 while our twbs/examples repo will focus on v5 and future major releases.
Get the release
Head to https://getbootstrap.com for the latest. It’s also been pushed to npm:
npm i firstname.lastname@example.org
Read the GitHub v5.2.1 changelog for a complete list of changes in this release.