bootstrap/site/content/docs/5.2
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
..
about Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
components Docs: rewrite/reorganise carousel docs page (#37354) 2022-11-28 23:20:35 -08:00
content Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
customize Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
examples Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
extend Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
forms Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
getting-started Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
helpers Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
layout Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
utilities Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
_index.html Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
migration.md Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00