0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-23 15:19:48 +01:00

2339 Commits

Author SHA1 Message Date
XhmikosR
8f6de23682
Merge branch 'main' into prepare-523 2022-11-22 09:51:29 +02:00
XhmikosR
cb021439c6 Dist 2022-11-21 20:19:01 +02:00
XhmikosR
39589472f7 Bump version to 5.2.3 2022-11-21 20:15:33 +02:00
GeoSot
7e3074c165 fix tooltip/popper disposal inconsistencies () 2022-11-21 20:12:43 +02:00
XhmikosR
2fde88c200
Use Object.entries in more places () 2022-11-13 09:19:11 +02:00
Patrick H. Lauke
0446e22b5a
Docs: use <button> for dropdown/popover examples, explain preference over <a> for dropdowns, tweak collapse prose ()
* Expand dropdown explanation for use of `<a>`, use `<button>`s for modal examples

* Remove redundant `role="button"` from collapse test `<button>` elements

* Tweak language

* Tweak collapse prose
2022-11-12 09:21:33 -08:00
XhmikosR
5208dd10c4
ESLint: enable prefer-template rule () 2022-11-12 10:09:36 +02:00
XhmikosR
21e036bf13
hydrateObj: use default param () 2022-11-12 10:03:16 +02:00
GeoSot
0a484e7586
fix: change replaceAll usage introduced in () 2022-11-11 10:40:17 +02:00
GeoSot
fcdfee90b3
ref: refactor getSelector not to be exported () 2022-11-07 14:55:34 +02:00
Pierre Souchay
ef4e2daa48
Properly escape IDs in getSelector() to handle weird IDs () () 2022-11-07 14:43:06 +02:00
GeoSot
e81e7cda90
Move getElementFromSelector & getSelectorFromElement to SelectorEngine ()
* Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage

* add `getMultipleElementsFromSelector` helper

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2022-11-06 20:31:43 +02:00
GeoSot
aa9d32dd15
Use explicit imports in our javascript source files () 2022-10-26 08:26:51 +03:00
Julien Déramond
137c932e47 Docs: standardize usage of <kbd> 2022-10-12 11:45:46 -07:00
GeoSot
4cb046a6b8
Boost execute function, being able to handle arguments () 2022-10-07 15:25:00 +03:00
GeoSot
01dc2f5100
fix tooltip/popper disposal inconsistencies () 2022-10-06 11:31:38 +03:00
Julien Déramond
1b3c38d2cd
Rename some vars in tab unit tests for consistency () 2022-10-03 17:44:37 +03:00
XhmikosR
961d5ff984
Release v5.2.2 ()
* Bump version to v5.2.2

* Dist
2022-10-03 10:44:02 +03:00
GeoSot
d49d8ce583
Ensure Tab keyboard functionality after ()
* fix: keyboard functionality

* test: add tests

* Add some focus spies in 2 other unit tests

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2022-10-02 13:05:30 +03:00
Patrick H. Lauke
0a5f6e078c
Use <h1> for all modal-title examples/uses ()
* Use `fs-` font sizing classes where needed
* Also add info callout about heading hierarchy in modals
2022-10-02 13:02:36 +03:00
XhmikosR
812f891bfc
Update devDependencies ()
* Update devDependencies

* @babel/cli             ^7.18.10  →   ^7.19.3
* @babel/core             ^7.19.1  →   ^7.19.3
* @babel/preset-env       ^7.19.1  →   ^7.19.3
* eslint-plugin-unicorn   ^43.0.2  →   ^44.0.0
* hugo-bin                ^0.92.1  →   ^0.92.2
* lockfile-lint            ^4.9.3  →    ^4.9.5
* postcss                 ^8.4.16  →   ^8.4.17
* stylelint              ^14.12.1  →  ^14.13.0
* vnu-jar                21.10.12  →   22.9.29

* toast.js: fix new lint errors
2022-10-02 08:24:41 +03:00
Julien Déramond
abb1cf529f
Add eslint-plugin-html to lint JS in HTML files () 2022-09-27 22:53:59 +03:00
GeoSot
597c402314
Dropdown: fix case with invalid markup ()
This fixes a backward incompatible change in v5.2.1 where `.drodown-toggle` isn't present in the markup.
2022-09-27 10:39:11 +03:00
GeoSot
24f6e2764a
Tests: add testcase to Tabs, keyboard handler () 2022-09-23 22:18:57 +02:00
Carson Sievert
2b46842af9
Fix active class toggling of tabs within dropdown ()
* Close : fix active class toggling tabs within dropdown
2022-09-22 02:29:58 +03:00
GeoSot
27f20257eb
Use es6 on visual tests () 2022-09-22 01:48:23 +03:00
GeoSot
1510c25e9b
Drop tabs auto-focus ()
* fix: drop tabs auto-focus
2022-09-20 17:20:47 +03:00
XhmikosR
d0117a17d8
Update devDependencies () 2022-09-20 08:09:14 +03:00
Jérémie Broutier
6f65df4fae
Fix modal event listeners ()
* Fix modal event listeners ()

Co-authored-by: GeoSot <geo.sotis@gmail.com>
2022-09-15 13:30:51 +03:00
GeoSot
3bd5756414
fix: add trick to support tooltip selector usage on dynamic created tooltips that utilize title attribute () 2022-09-14 16:24:37 +03:00
XhmikosR
23e50829f9
Release v5.2.1 ()
* Bump version to v5.2.1.

* Dist
2022-09-07 18:31:39 +03:00
GeoSot
23fb7a7915
Fix modal event-listeners during dismiss click ()
ref: 
2022-09-07 11:56:33 +03:00
GeoSot
949456984a
Fix tooltip manual toggling ()
partial regression of SHA: 9b9372e8ddd60413f3d9a582bd5481586d119d8d
2022-09-07 11:47:06 +03:00
Louis-Maxime Piton
337068f8b1
fix(dropdowns): Fix multiple dropdowns when they are inside the same tag () 2022-09-02 10:52:33 +03:00
GeoSot
db86607c08
ScrollSpy: make the threshold option configurable ()
* feat(ScrollSpy): make the threshold option configurable
2022-07-28 11:58:28 +03:00
GeoSot
dfae892801
Re-set tooltip title, on disposal ()
fix(reg): Re-set tooltip title, on disposal
2022-07-27 17:40:05 +03:00
XhmikosR
edf9c40956
Release v5.2.0 ()
* Bump version to 5.2.0

* Dist

* Update masthead.html
2022-07-19 18:43:58 +03:00
GeoSot
f451b4161e
Fix failing test on EventHandler () 2022-07-19 15:46:36 +03:00
Marc Wrobel
705d6857ad Fix typos in code ()
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-07-18 13:30:29 -07:00
Julien Déramond
aa8d0b3439
Standardization of spyOn usage () 2022-07-15 16:52:03 +03:00
GeoSot
713d7140f1
Offcanvas: activate focustrap when backdrop is enabled ()
* fix(offcanvas): activate focustrap when backdrop is enabled
* Adding tabindex='-1' for both offcanvases in the docs
* Remove useless aria-expanded='false' in togglers
* Update js/tests/unit/offcanvas.spec.js

Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
2022-07-14 10:06:06 +01:00
Louis-Maxime Piton
ed2690608e
Fix on ()
* Fix

* .
2022-07-11 16:29:30 -07:00
Nathan Walters
3f324eed02
Handle non-empty whitespace textContent in Tooltip trigger () 2022-07-06 07:15:50 +02:00
Julien Déramond
c1813ef2bc
ref(tests): Minor fix to use self-closing input HTML tag () 2022-07-04 14:12:10 +03:00
Aleksander Machniak
505e0235b9
Fix interoperability issue regarding Event properties ()
* Fix interoperability issue regarding Event properties

- make possible to re-set read-only event properties
- use hydrateObj() to set delegateTarget property

Fixes 

Co-authored-by: GeoSot <geo.sotis@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-06-30 22:52:47 +03:00
GeoSot
4f4b42dd14
Force tooltip and popover to recreate content every time it opens () 2022-06-27 12:58:27 +03:00
GeoSot
f14c58f494
ref(tab): remove show from panels dependent-less they have .fade class or not (simplify checks) () 2022-06-27 12:43:11 +03:00
GeoSot
d05c42a397
fix: change dismiss handler, listening to key down, instead of click () 2022-06-21 11:03:57 +03:00
GeoSot
fc24f8788f
Carousel: Remove redundant reference to interval=false from docs ()
* docs: remove redundant reference to `interval=false`

* docs: remove redundant reference to `interval=false` from tests

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-06-14 16:17:28 +03:00
GeoSot
ec8166a90f
fix: fix possible bug on event handler. ()
some browsers validate the empty object as `true`, so is safer to use an explicit check
2022-06-14 08:33:53 +03:00