0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-18 07:04:22 +00:00
Commit graph

2,404 commits

Author SHA1 Message Date
Mark Otto
2d1ee1e9c4
Release v5.3.9 (#43331)
Update package, source, and docs versions for v5.3.9.
Build release files and update CDN integrity hashes.
2026-11-09 22:22:14 -08:00
Mark Otto
132b512f24
fix(tooltip): Preserve literal text in v5 data attributes (#43319)
Keep tooltip titles and popover content as written in markup so
decimal strings retain their formatting and empty titles don't throw.

Read the raw attributes before merging explicit options and keep
the existing sanitization and JavaScript option behavior.
2026-11-09 11:54:05 -08:00
Kushida
200fdc93ee
fix(scrollspy): support nested smooth-scroll links (#42673) 2026-11-09 11:53:55 -08:00
Najeeb Jarrar
165812f75b
Carousel: don't throw when no indicator is active (#42974)
If the carousel has indicators but none of them has the `.active`
class, sliding threw a TypeError because the current indicator was
assumed to exist. Skip the reset when there is no active indicator so
the new one still gets marked as active.


Claude-Session: https://claude.ai/code/session_01RCK6vggtNiub9nuny85at8

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-09 11:53:50 -08:00
Julien Déramond
d6d3a99008
Use Element[] for getNextActiveElement's list param in JSDoc (#42978)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 19:06:51 +02:00
ANDI FAUZAN HEDIANTORO
5b8a47d0de
Improve JSDoc of parseSelector, reflow and getNextActiveElement in js/src/util/index.js (#42479)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2026-10-04 20:03:00 +02:00
Kevinjohn Gallagher
d0fb460d91
Fix carousel touch swipe delta (#42714)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2026-10-04 19:42:15 +02:00
Julien Déramond
cc867751d7
Docs: replace https://popper.js.org references by archived GitHub Markdown content (#42870) 2026-08-25 20:51:40 +02:00
Julien Déramond
fda060090f
Docs: add missing role='button' to <a> dropdowns (#42482) 2026-06-07 21:40:54 +02:00
ANDI FAUZAN HEDIANTORO
e3372d493f
Fix falsie → falsely typo in js/src/util/index.js comment (#42478) 2026-06-07 19:53:20 +02:00
Mark Otto
25aa8cc0b3
Release v5.3.8 (#41669)
* Bump version

* Run dist

* Unrelated new docs error
2025-08-25 19:01:02 -07:00
Mark Otto
ac5f51c17e
Revert "Attempt to return focus explicitly to dropdown trigger (#41365)" (#41668)
This reverts commit 24305e7b18.
2025-08-25 09:48:45 -07:00
Julien Déramond
e0032ae6a5
Release v5.3.7 (#41509) 2025-06-10 08:44:49 -07:00
Amit Rathiesh
13aa16a99b
Fix: Popover with hover and click triggers closes on mouseleave (#41511)
* Fix: Popover with hover and click triggers closes on mouseleave

When a popover is configured with `trigger: 'hover click'`,
if you open it by a click, it would incorrectly close when the
mouse pointer leaves the trigger element. This was because the
`mouseleave` event (part of the hover trigger) would hide the
popover without adequately respecting the click trigger's intent
to keep it open.

This commit modifies the click event listener within `Tooltip.js`
(which Popover extends) to explicitly manage the `_activeTrigger[TRIGGER_CLICK]`
state:
- When a click opens the popover or makes a hover-opened popover
  sticky, `_activeTrigger[TRIGGER_CLICK]` is set to `true`.
- When a click closes an already click-activated popover,
  `_activeTrigger[TRIGGER_CLICK]` is set to `false`.

The `_leave()` method, called by `mouseleave`, already checks
`_isWithActiveTrigger()`. With `_activeTrigger[TRIGGER_CLICK]`
now accurately reflecting the click state, `_leave()` will not
hide a click-activated popover when the mouse leaves the trigger
element. The popover will now correctly remain open until a
subsequent click closes it.

* Removed `test-popover.html`

* Fix linting issues

* Add unit test

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2025-06-03 12:19:24 -07:00
Julien Déramond
0f19b06745
Update devDependencies (#41450) 2025-05-07 17:24:20 +02:00
Mark Otto
f849680d16
Release v5.3.6 (#41406)
* Update to v5.3.6

* Rebuild

* Rebuild
2025-05-05 12:21:55 -07:00
Mohamad Salman
7bbbc492ef
Removed line break between // Private comment and function (#41218) 2025-04-25 10:22:58 -07:00
Mohamad Salman
3bb3c95188
Move _isShown() method to private section (#41220) 2025-04-25 10:21:47 -07:00
Mark Otto
24305e7b18
Attempt to return focus explicitly to dropdown trigger (#41365)
Co-authored-by: Mark Otto <mdo@heypierre.app>
2025-04-21 21:20:09 -07:00
Mohamad Salman
5c5f2913df
Add private comment to BaseComponent Class (#41254) 2025-04-21 20:33:04 -07:00
Julien Déramond
a8ab19955b
Docs: migration from Hugo to Astro (#41251)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2025-04-15 18:37:47 +02:00
Mark Otto
85f23534bd
Bump to v5.3.5 (#41348)
* Bump to v5.3.5

* Undo comment version change

* undo comment

* release again
2025-04-04 11:20:30 -07:00
XhmikosR
51581ed235
Release v5.3.4 (#40656)
* Bump version to v5.3.4

* Dist

* Dist

* dist again

* re-run npm release

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
2025-04-03 08:58:10 -07:00
Patrick H. Lauke
ed253683f3
[Docs] Remove some unnecessary Twitter references/examples (#41174)
* Remove some unnecessary Twitter references/examples

* Changes suggested by @mdo
2025-04-02 23:03:06 -07:00
Louis-Maxime Piton
49a5ccfd4f
Docs: From Twitter to X (#40706)
* From Twitter to X

* .

* Use Bootstrap Icons

* Set X card to use `twitter` again

* Update `tests/unit/popover.spec.js`

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2025-04-02 22:47:45 -07:00
Mohamad Salman
b7f3d6a6be
Rename fixtureId to FIXTURE_ID in js/tests/helpers for consistency (#41150)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2025-02-08 18:37:52 +01:00
Patrick (Casus Belli)
cacbdc680e
Fix left alignment of floating labels with .form-select size variants (#41013)
Co-authored-by: Patrick Kroog <pk@kroog.com>
Co-authored-by: Christian Oliff <christianoliff@pm.me>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
2024-11-14 11:12:33 +01:00
Dmitry
fecd219983
Fix popover remaining open when toggled after being shown (#40803)
Co-authored-by: Dmitry Sergienko <dmitry.sergienko@codefirst.net>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2024-09-12 09:45:08 +02:00
XhmikosR
6ca9152d04
Update devDependencies and regenerate package-lock.json (#40673)
* @babel/preset-env       ^7.24.8  →   ^7.25.0
* eslint-plugin-unicorn   ^54.0.0  →   ^55.0.0
* hugo-bin               ^0.126.0  →  ^0.127.0
* postcss                 ^8.4.39  →   ^8.4.40
* rollup                  ^4.19.0  →   ^4.19.1
* rtlcss                   ^4.1.1  →    ^4.2.0
2024-07-29 17:26:02 +03:00
Nathan Sarang-Walters
16d80a4ff7
Fix this reference for JavaScript functions (#38725) 2024-07-19 07:05:21 +02:00
Louis-Maxime Piton
b522441901
Floating labels: Fix max-width and background-color (#39720)
* Fix `max-width`

* Fix label background color

* Add new visual test: floating label

* Fix `npm run docs`

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2024-06-12 18:39:23 -07:00
Caleb Albritton
4219af2c0e
Fix broken comment link for reflow hack (#39791) 2024-03-18 10:32:49 +02:00
XhmikosR
953b4b6c1b Fix various redirects 2024-03-06 09:52:50 +02:00
Julien Déramond
6e1f75f420
Release v5.3.3 (#39524)
* Release v5.3.3

* Dist

---------

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2024-02-20 17:14:29 +02:00
GeoSot
6ed1cdd43e
Selector Engine: fix multiple IDs (#39201)
* fix: regression of #38989

* Add unit test in selector-engine.spec.js

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2024-02-18 08:58:07 +02:00
dependabot[bot]
40c6d8a4bc
Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 (#39651)
* Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0

Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.43.1 to 0.44.0.
- [Release notes](https://github.com/xojs/eslint-config-xo/releases)
- [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.43.1...v0.44.0)

---
updated-dependencies:
- dependency-name: eslint-config-xo
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .eslintrc.json

* Update .eslintrc.json

* autofix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2024-02-06 21:46:52 +02:00
Frans de Jonge
b9f92d70c9
Allow <dl>, <dt> and <dd> in JS sanitizer (#39376)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2023-11-15 08:38:27 +01:00
Julien Déramond
ce114117a8
Tests: update navbar in visual modal test (#39294) 2023-10-13 10:28:08 +02:00
Julien Déramond
344e912d04
Release v5.3.2 (#39173)
* Bump version to 5.3.2

* Dist
2023-09-14 17:19:27 +03:00
Louis-Maxime Piton
9900cf33c0
Fix collapse multiple ids target (#38989) 2023-09-13 09:30:32 +02:00
Mustafa Ateş Uzun
1be3057230
Dropdown: reuse variable (#39046)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2023-08-21 09:06:39 +03:00
XhmikosR
2a1bf52b73
Release v5.3.1 (#38956)
* Bump version to 5.3.1

* Dist
2023-07-26 10:46:38 +03:00
Kyle Tsang
d45cc7ef51
Support Home and End keys in tabs (#38498)
* Support `Home` and `End` keys in tabs

* Update tab.js

* simplify tests

* Update navs-tabs.md

* Update .bundlewatch.config.json

---------

Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2023-07-23 22:06:14 +03:00
Julien Déramond
3515ac16a1 Docs: add missing aria-disabled='true' to disabled anchors 2023-07-05 22:28:00 -07:00
XhmikosR
60098ac499
Release v5.3.0 (#38657)
* Bump version to 5.3.0

* Dist
2023-05-30 18:15:55 +03:00
Kyle Tsang
d5dee316f7
Update URL sanitizer to allow more protocols (#38531)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2023-05-01 00:33:09 +03:00
Alejandro Mendoza
a06c2e6b5f
Fix scrollspy and accented anchor links (#38502) 2023-05-01 00:31:26 +03:00
XhmikosR
4f24144a31
dropdown.spec.js: expect nothing in constructor (#38442) 2023-04-11 18:03:34 +03:00
XhmikosR
ac576614a5
Release v5.3.0-alpha3 (#38357)
* Bump version to 5.3.0-alpha3

* Dist
2023-04-03 10:26:50 +03:00
XhmikosR
ae43f0c48b
Tweak and re-organize ESLint config (#38369)
* Tweak and re-organize ESLint config

* merge individual configs to the root config
* enable more eslint-plugin-import rules
* lint markdown files

* Lint
2023-03-29 13:49:30 -04:00