0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/site/content/docs/5.2/components
Patrick H. Lauke 0444d2cfe5
Docs: rewrite/reorganise carousel docs page (#37354)
* Instantiate/initialize all non-autoplaying carousels in docs pages

* Rewrite/reorganise carousel docs page

* start with static/non-autoplaying examples
* explicitly mention that carousels currently need to be manually initialized
* split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus

* Add callout about autoplaying and accessibility

* Don't have the dark variant example autoplay

* Add "autoplaying" to cspell custom dictionary

* Tweal wording, move Page Visibility API to autoplay section

* Tweak explanation for methods, add line break in js code for consistency with last code block on the page

* Tweak method descriptions

* Tweak headings (plural "carousels")

* Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph

* Tweak warning about `.active` slide

* Tweak callout wording

* Further prose tweaks

move the sentence about not double-initialising autoplaying carousels to the callout right at the top
instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor
remove the incorrect statement about pausing when keyboard focus is in the carousel

* Instantiate/initialize all non-autoplaying carousels in docs pages

* Rewrite/reorganise carousel docs page

* start with static/non-autoplaying examples
* explicitly mention that carousels currently need to be manually initialized
* split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus

* Add callout about autoplaying and accessibility

* Don't have the dark variant example autoplay

* Add "autoplaying" to cspell custom dictionary

* Tweal wording, move Page Visibility API to autoplay section

* Tweak explanation for methods, add line break in js code for consistency with last code block on the page

* Tweak method descriptions

* Tweak headings (plural "carousels")

* Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph

* Tweak warning about `.active` slide

* Tweak callout wording

* Further prose tweaks

move the sentence about not double-initialising autoplaying carousels to the callout right at the top
instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor
remove the incorrect statement about pausing when keyboard focus is in the carousel

* Fix relative link

* Update site/assets/js/snippets.js

Co-authored-by: GeoSot <geo.sotis@gmail.com>

* Fix snippet.js

* Tweak content organisation just a bit

Co-authored-by: GeoSot <geo.sotis@gmail.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-11-28 23:20:35 -08:00
..
accordion.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
alerts.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
badge.md Docs: organize callouts in partials (#37320) 2022-10-16 18:09:33 +02:00
breadcrumb.md Docs: fix some ARIA Authoring Practices Guides broken links (#36488) 2022-06-02 22:10:22 +01:00
button-group.md Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487) 2022-06-03 11:18:22 +01:00
buttons.md Docs: organize callouts in partials (#37320) 2022-10-16 18:09:33 +02:00
card.md Docs: fix margins between cards in examples 2022-11-14 09:05:20 -08:00
carousel.md Docs: rewrite/reorganise carousel docs page (#37354) 2022-11-28 23:20:35 -08:00
close-button.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
collapse.md Docs: use <button> for dropdown/popover examples, explain preference over <a> for dropdowns, tweak collapse prose (#37432) 2022-11-12 09:21:33 -08:00
dropdowns.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
list-group.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
modal.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
navbar.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
navs-tabs.md Docs: organize callouts in partials (#37320) 2022-10-16 18:09:33 +02:00
offcanvas.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
pagination.md Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
placeholders.md Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
popovers.md Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
progress.md Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
scrollspy.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
spinners.md Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
toasts.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
tooltips.md Docs: organize callouts in partials (#37320) 2022-10-16 18:09:33 +02:00