# bootstrap v5.3.3 - Product: bootstrap (https://whatsnew.fyi/product/bootstrap) - Vendor: twbs - Date: 2024-02-20 - Version: v5.3.3 - Original notes: https://github.com/twbs/bootstrap/releases/tag/v5.3.3 - Permalink: https://whatsnew.fyi/product/bootstrap/releases/v5.3.3 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- Changes to check: - **Removed:** `--bs-accordion-btn-focus-border-color` (inferred by a model) - **Deprecated:** `$accordion-button-focus-border-color` (inferred by a model) - **fixed** — Fixed a breaking change in color modes where _variables.scss now automatically imports _variables-dark.scss - **fixed** — Fixed a regression in the selector engine that was unable to handle multiple IDs - **changed** — Badges now use the .text-bg-* text utilities to ensure text is always readable in light and dark modes - **fixed** — Fixed color-modes.js script to handle the case where the OS is set to light mode and auto color mode is used - **added** — Allowed
,
and
in the sanitizer - **removed** — Dropped evenly items distribution for modal and offcanvas headers - **fixed** — Fixed accordion CSS selectors to avoid inheritance issues when nesting accordions - **fixed** — Fixed the focus box-shadow for validation stated form controls - **fixed** — Fixed the focus ring on focused checked buttons - **fixed** — Fixed the product example mobile navbar toggler - **changed** — Changed the RTL processing of carousel control icons - **deprecated** — Deprecated $accordion-button-focus-border-color ##### Highlights - Fixed a breaking change introduced with color modes where it was required to manually import `variables-dark.scss` when building Bootstrap with Sass. Now, `_variables.scss` will automatically import `_variables-dark.scss`. If you were already importing `_variables-dark.scss` manually, you should keep doing it as it won't break anything and will be the way to go in v6. - Fixed a regression in the selector engine that wasn't able to handle multiple IDs anymore. ##### Color modes - Badges now use the `.text-bg-*` text utilities to be certain that the text is always readable (especially when the customized colors are different in light and dark modes). - Fixed our `color-modes.js` script to handle the case where the OS is set to light mode and the auto color mode is used on the website. If you copied the script from our docs, you should apply [this change](https://github.com/twbs/bootstrap/commit/73e1dcf43eff8371dde52ce41bd1d9fdc2b47d1f) to your own script. - Fixed color schemes description in the color modes documentation to show that `color-scheme()` only accept `light` and `dark` values as parameters. ##### Miscellaneous - Allowed `
`, `
` and `
` in the sanitizer. - Dropped evenly items distribution for modal and offcanvas headers. - Fixed the accordion CSS selectors to avoid inheritance issues when nesting accordions. - Fixed the focus box-shadow for the validation stated form controls. - Fixed the focus ring on focused checked buttons. - Fixed the product example mobile navbar toggler. - Changed the RTL processing of carousel control icons. --- ##### 🎨 CSS - #37508: Use child combinators to avoid inheriting parent accordion's flush styles - #38719: Fix focus box-shadow for validation stated form-controls - #38884: fix border-radius on radio-switch - #39294: Tests: update navbar in visual modal test - #39373: refactor css: modal and offcanvas header spacing - #39380: Fix Sass compilation breaking change in v5.3 - #39387: docs: fix typo - #39411: Optimize the accordion icon - #39497: Fix a typo - #39536: Changed RTL processing of carousel control icons - #39560: Drop `--bs-accordion-btn-focus-border-color` and deprecate `$accordion-button-focus-border-color` - #39595: CSS: Fix the focus ring on focused checked buttons ##### ☕️ JavaScript - #39201: Selector Engine: fix multiple IDs - #39224: Fix edge case in `color-mode.js` - #39376: Allow `dl`, `dt` and `dd` in sanitizer ##### 📖 Docs - #39200: Typo Fix - #39214: Doc: use `.text-bg-{color}` for all badges - #39246: Docs: fix for example code blocks have unnecessary 30px right-margin - #39249: Doc: consistent rendering of 'Heads up!' callouts - #39281: Fix `getOrCreateInstance()` doc example - #39293: Update background.md - #39304: Doc: add expanded accordion explanation - #39320: Drop `.table-light` from table foot example - #39340: Doc: add `dispose()` to Offcanvas methods - #39378: Docs: fix sentence in modal - #39417: Fix color schemes description in Sass customization documentation - #39418: Docs: change vite config path import in vite guide - #39435: Docs: add `shift-color()` usage example in sass customization page - #39458: Docs: enhance `.card-img-*` description - #39503: Minor image compression improvements - #39519: Docs: use consistent HTML elements in Utilities -> Background page - #39520: Docs: drop unused `.theme-icon` class - #39528: docs: clean up example.html - #39537: Docs: fix desc around deprecated Sass mixins for alerts and list groups - #39539: Update links on get-started page - #39592: Update vite.md - #39604: Fix typo in 'media-breakpoint-between' in migration docs - #39617: Docs: add missing comma in native font stack code source in Content -> Reboot - #39663: updated table to be responsive ##### 🛠 Examples - #39657: Fix product example mobile navbar toggler - #39585: Docs: Add missing type="button" to Cheatsheet nav buttons ##### 🏭 _[Truncated at 4000 characters — full notes: https://github.com/twbs/bootstrap/releases/tag/v5.3.3]_