0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Commit Graph

21622 Commits

Author SHA1 Message Date
GeoSot
a1e924c4da Event-handler: use Array.find instead of for 2022-02-01 12:43:19 +02:00
GeoSot
fc7c5fcb7a Event-handler: initialize variable properly 2022-02-01 12:43:19 +02:00
GeoSot
3f7b31e0e0
Fix Popover test that randomly fails on BrowserStack (#35757)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-02-01 10:33:18 +02:00
GeoSot
c44d99f55c Dropdown: use destructured variables in dataApyKeydownHandler 2022-02-01 08:58:46 +02:00
GeoSot
c14fc989df Dropdown: dropdown doesn't document data-bs-target option & parentNode is ALWAYS the wrapper for toggle & menu 2022-02-01 08:58:46 +02:00
GeoSot
d105439235 Dropdown: merge instance identification in dataApiKeydownHandler
As we use the `dataApiKeydownHandler` only for events that are triggered on `[data-bs-toggle="dropdown"]` or on `.dropdown-menu`, we can ensure that their `parentNode` will ALWAYS be the `.dropdown` wrapper
2022-02-01 08:58:46 +02:00
Toby Zerner
22bbff0b03
Remove incorrect statement about the disabled attribute on <form> (#35713)
> You can disable every form element within a form with the `disabled` attribute on the `<form>`.

I really want to be mistaken, because this would be a very useful feature! But I don't believe it's true. I can't find anything about this on MDN Web Docs, and adding the `disabled` attribute to a `<form>` does nothing on any browser in my testing.

The `disabled` attribute on a `<fieldset>` does disable all descendant form controls – perhaps that's where the mixup has come from.
2022-02-01 08:40:59 +02:00
XhmikosR
9d44b603d5
Update devDependencies (#35743)
* clean-css-cli   ^5.5.0  →   ^5.5.2
* cspell         ^5.16.0  →  ^5.17.0
* eslint          ^8.7.0  →   ^8.8.0
* hugo-bin       ^0.80.0  →  ^0.80.1
* karma          ^6.3.12  →  ^6.3.13
* rollup         ^2.66.0  →  ^2.66.1
* sass           ^1.49.0  →  ^1.49.4
2022-02-01 08:35:01 +02:00
Quy
76802e2d47 Change X to Extra 2022-01-30 18:09:48 -08:00
GeoSot
7f04f84bf8 Dropdown: use only one check for shown state 2022-01-30 18:01:09 +02:00
GeoSot
5f1c542d67 Dropdown: get dropdown's parent in one place 2022-01-30 18:01:09 +02:00
GeoSot
74f24cdf24
More tooltip refactoring (#35546)
* Tooltip.js: move `shown` check to method

* Tooltip.js: move Popper's creation to method

* Tooltip.js: merge checks before `hide`

* Tooltip.js: minor refactoring on `toggle` method
2022-01-30 17:39:03 +02:00
XhmikosR
e1020a43a5
Move cspell to Actions (#35593)
* Move cspell to Actions

* Remove the now unused `docs-spellcheck` npm script
2022-01-30 16:39:30 +02:00
GeoSot
882185bbde
Change selector-engine.js parents method to utilize better js native methods (#35684)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-01-30 16:24:03 +02:00
XhmikosR
89f88762c5
Fix visual tests (#35585)
* Fix visual tests

They broke in #34509

* load bundle.js in visual tests

Co-authored-by: GeoSot <geo.sotis@gmail.com>
2022-01-30 16:12:24 +02:00
XhmikosR
f77a58b381
Update cspell config (#35680)
* use `en-US`
* scan all markdown files
* ignore dist, rtl and tests files
2022-01-30 16:11:38 +02:00
GeoSot
dcbe7b6f31 Modal.js: remove unnecessary checks from test 2022-01-30 15:39:34 +02:00
GeoSot
28c9002573 Modal: handle click event from backdrop callback 2022-01-30 15:39:34 +02:00
GeoSot
aa650f0f1e
tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)
Reference:

https://jasmine.github.io/tutorials/async

'DEPRECATION: An asynchronous function called its 'done' callback more than once. This is a bug in the spec, beforeAll, beforeEach, afterAll, or afterEach function in question. This will be treated as an error in a future version. See<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> for more information.
2022-01-30 14:30:04 +02:00
GeoSot
d092817059 Event handler: merge new Event with new CustomEvent 2022-01-30 14:15:17 +02:00
GeoSot
fa93995123 Event handler: replace deprecated initEvent 2022-01-30 14:15:17 +02:00
XhmikosR
640542e606
Move linkinator to GitHub Actions. (#35573)
* Move linkinator to GitHub Actions.

* Remove `docs-linkinator` npm script since it's no longer used
2022-01-29 14:42:56 +02:00
Dimitri Papadopoulos Orfanos
eb2fda2110
docs: fix a couple typos found with codespell (#35733)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-01-29 13:30:02 +02:00
XhmikosR
0840105d7f SelectorEngine: remove moot space 2022-01-29 13:25:30 +02:00
XhmikosR
558002f3dc Return early in more places 2022-01-29 13:25:30 +02:00
XhmikosR
7d3bc44bb0 dropdown: Move constant 2022-01-29 13:25:30 +02:00
GeoSot
a8887ea8a8 collapse: merge class toggling 2022-01-29 13:25:30 +02:00
XhmikosR
b5147ec218 event-handler.js: use for...of 2022-01-29 13:25:30 +02:00
XhmikosR
62d86c07f8 Rename variables 2022-01-29 13:25:30 +02:00
XhmikosR
3ac4451d47 backdrop.js: cache _getElement calls 2022-01-29 13:25:30 +02:00
XhmikosR
0c3dfe104b Remove a few unneeded variables 2022-01-29 13:25:30 +02:00
A Web Artisan
2964c12bb9
docs: remove moot autocomplete attributes (#35741) 2022-01-29 13:20:01 +02:00
Neeraj Kumar Das
d122f40526 Remove duplicate Octicons entry in icons list
Update Octicons website
2022-01-25 15:22:00 -08:00
Kirill Zdornyy
c1222d6952
Fix spelling mistake in footer example (#35704) 2022-01-25 12:06:50 +02:00
XhmikosR
1411181b1b
Update devDependencies (#35712)
* @babel/core        ^7.16.7  →  ^7.16.12
* @babel/preset-env  ^7.16.8  →  ^7.16.11
* cspell             ^5.15.2  →   ^5.16.0
* karma              ^6.3.11  →   ^6.3.12
* rollup             ^2.64.0  →   ^2.66.0
* sass               ^1.48.0  →   ^1.49.0
2022-01-25 12:03:42 +02:00
Julien Déramond
520cc8de92
Docs: group together reusable CSS for examples in a single stylesheet (#35649)
* Docs: group together examples reusable CSS in a stylesheet

* Use pointer-events utility in sidebars example

* Remove @import and move the content into _default/examples.html. Handle 2 sorts of dividers

* Remove footers.css extra css declaration

* Fix modals example

* Review: remove .b-example-hr

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-19 13:27:57 +02:00
XhmikosR
cd208341a1
Update devDependencies (#35686)
* bundlewatch             ^0.3.2  →   ^0.3.3
* cspell                 ^5.15.1  →  ^5.15.2
* eslint                  ^8.6.0  →   ^8.7.0
* eslint-plugin-unicorn  ^40.0.0  →  ^40.1.0
* hugo-bin               ^0.79.2  →  ^0.80.0
* karma                  ^6.3.10  →  ^6.3.11
* rollup                 ^2.63.0  →  ^2.64.0
* sass                   ^1.47.0  →  ^1.48.0
2022-01-18 07:09:40 +02:00
XhmikosR
f0e1220970
README.md: mention Netlify (#35683)
* README.md: mention Netlify

* Update README.md

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-13 14:52:07 +02:00
XhmikosR
c99fa6ca26
build-plugins.js: use globby package (#35586)
We already use it in the change-version.js file
2022-01-13 13:12:10 +02:00
Ryan Berliner
14c7dc1e88
Fix: isVisible function behavior in case of a <details> element, on chrome 97 (#35682) 2022-01-13 10:55:05 +02:00
XhmikosR
d581737f78
Update cspell config (#35647)
* specify the files to scan in the config
* enable `useGitignore` option
* remove a few unneeded suppressions
2022-01-11 11:17:12 +02:00
XhmikosR
17260410ba
Update devDependencies (#35678)
* @babel/cli                   ^7.16.7  →  ^7.16.8
* @babel/preset-env            ^7.16.7  →  ^7.16.8
* @popperjs/core               ^2.11.0  →  ^2.11.2
* @rollup/plugin-node-resolve  ^13.1.2  →  ^13.1.3
* autoprefixer                 ^10.4.1  →  ^10.4.2
* cspell                       ^5.14.0  →  ^5.15.1
* karma                         ^6.3.9  →  ^6.3.10
* rollup                       ^2.62.0  →  ^2.63.0
* sass                         ^1.45.2  →  ^1.47.0
* shelljs                       ^0.8.4  →   ^0.8.5
2022-01-11 10:32:18 +02:00
Arslan Kalwar
e8f4cba9a0
fixed button text (#35656)
Added button missing text
2022-01-05 19:44:22 +02:00
Sakurai Kenji
0dbec67514
Fix custom-checkbox and custom-radio in migration doc (#35609) 2022-01-05 19:24:59 +02:00
Patrick H. Lauke
0d054bb0f1
Remove explicit use of aria-hidden for offcanvas when closed (#35589)
Remove explicit use of aria-hidden & visibility for offcanvas when closed, handling it with css

Co-authored-by: GeoSot <geo.sotis@gmail.com>
Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-05 19:20:15 +02:00
Neeraj Kumar Das
f7a1b18320
Fix offcanvas title in 'Enable body scrolling' example (#35621) 2022-01-05 19:01:05 +02:00
zhangchenglin
670e12dd0d Remove the useless class of the close button .text-reset 2022-01-05 18:40:15 +02:00
XhmikosR
cebb8436c7
Update nuget/bootstrap.png (#35641) 2022-01-04 09:40:53 +02:00
XhmikosR
0b57c44056
Update devDependencies (#35640)
* @babel/cli                   ^7.16.0  →  ^7.16.7
* @babel/core                  ^7.16.5  →  ^7.16.7
* @babel/preset-env            ^7.16.5  →  ^7.16.7
* @rollup/plugin-node-resolve  ^13.1.1  →  ^13.1.2
* @rollup/plugin-replace        ^3.0.0  →   ^3.0.1
* autoprefixer                 ^10.4.0  →  ^10.4.1
* cspell                       ^5.13.4  →  ^5.14.0
* eslint                        ^8.5.0  →   ^8.6.0
* eslint-plugin-import         ^2.25.3  →  ^2.25.4
* eslint-plugin-unicorn        ^39.0.0  →  ^40.0.0
* sass                         ^1.45.1  →  ^1.45.2
2022-01-04 09:26:50 +02:00
XhmikosR
9680e17456
Bump copyright year to 2022 (#35639) 2022-01-03 15:03:42 +02:00