Bootstrap v5.2.1 is out now, it’s a patch release that mainly contains some bug fixes, documentation updates and dependency updates.
Key changes
Updated the calc() function to address an apparent bug in postcss-values-parser that caused source Sass files to not compile properly when built with React and PostCSS. The solution is to reverse the multiplication order in the calc() function. Users may need to make similar modifications based on their own customizations.
Also addresses some long-standing issues with button focus and active styling, especially for checkboxes and radio buttons. On mobile devices, input-based buttons are difficult to get rid of their focus styles. This issue was resolved in v5.2.1, the development team changed :focus in .btns to :focus-visible. Checkboxes and radio buttons now no longer change their background color when :focus-visible, nor do they receive :hover styling. Regular .btns still have their familiar hover and focus styles.
Highlights
In addition to the above changes, bugs have been fixed for several components:
- Accordion
- renew
color
value to use$accordion-button-color
Sass variables instead of color contrast functions
- renew
- Buttons
- Added transparent default hover border color CSS variable for buttons to fix visual regression
$enable-gradients
Set astrue
Time.btn-link
no more gradients
- Forms
- Input groups updated
z-index
value to ensure that validated form fields are rendered correctly - Floating labels now realign their text to ensure consistent style.
- Input groups updated
- List Groups
- Horizontal list groups with only one child now render correctly
border-radius
- edited
list-group-item
selectors to better support nested imports of Bootstrap CSS
- Horizontal list groups with only one child now render correctly
- Modals
- Updated event listeners to ignore scrollbar clicks, from
.modal-dialog
Clicks that start on the inside but end on the outside, and.modal-dialog
Responses to outside start and end clicks.
- Updated event listeners to ignore scrollbar clicks, from
- Pagination
- Fixed bug in pagination component
border-radius
value
- Fixed bug in pagination component
- scrollspy
- Scrollspy threshold options are now configurable
- Tooltips and Popovers
- Reverted some tooltip plugin updates to prevent
selector
dynamic content and usagetitle
There is a problem with the tooltip for - repair
trigger
:transfertoggle()
Issue with “manual” showing and immediately hiding
- Reverted some tooltip plugin updates to prevent
dependencies
- Updated Autoprefixer to fix
color-adjust
Attribute warning issue
More details can be found on the official blog.
#Bootstrap #v521 #released #News Fast Delivery