0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-13 01:08:58 +01:00
Bootstrap/site/content/docs/5.2/examples
Patrick H. Lauke 26a3ef1bcb
Rework progress bar markup and styles (#36831)
* Rework progress bar markup and styles

Logically moves the various `role` and `aria-` attributes to the `.progress` element itself, leaving the `.progress-bar` to be used purely for the visual presentation. This fixes the problem #36736 that in certain browser/AT combinations, zero-value/zero-width progress bars are completely ignored and not announced.

For multiple/stacked progress bars, this PR introduces a new wrapper and class `.progress-stacked`, to accommodate for the fact that with the more logical structure above, we need full `.progress` elements with child `.progress-bar` elements, and can't get away with the fudge we had before of having a single `.progress` with multiple `.progress-bar`s.

Note that the old markup structures still work with this change, so this could be considered a non-breaking change - though one we definitely want to highlight as it's more accessible (as it now guarantees that zero-value/zero-width progress bars, whether on their own or as part of a multi/stacked bar, are actually announced)

* Add a note about progress bar change in migration guide

* Add notes with old markup examples and explanation

* Fix bundlewatch

* Update site/content/docs/5.2/components/progress.md

Co-authored-by: Julien Déramond <julien.deramond@orange.com>

* Reintroduce deleted styles

Turns out they're needed for correct positioning of text inside progress bar

* Move changes in markup to Migrationg guide, link to that from top of progress page, rewrite some content

* Fix typo in callout

* Clarify "Sizing" section

* Remove redundant "now"

Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2022-11-28 23:07:48 -08:00
..
album Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
album-rtl Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
blog Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
blog-rtl Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
carousel Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
carousel-rtl Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
cheatsheet Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
cheatsheet-rtl Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
checkout Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
checkout-rtl Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
cover Fix button hover color in cover example 2022-10-06 13:12:09 -07:00
dashboard Fix dashboard example so that the sticky sidebar has scrollable content (#36608) 2022-06-29 18:33:23 +02:00
dashboard-rtl Fix dashboard example so that the sticky sidebar has scrollable content (#36608) 2022-06-29 18:33:23 +02:00
dropdowns Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
features Added new example in examples/features page. (#36660) 2022-08-03 21:52:41 -07:00
footers Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
grid Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
headers Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487) 2022-06-03 11:18:22 +01:00
heroes Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
jumbotron Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
list-groups Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
masonry Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
modals Use <h1> for all modal-title examples/uses (#37210) 2022-10-02 13:02:36 +03:00
navbar-bottom Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487) 2022-06-03 11:18:22 +01:00
navbar-fixed Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
navbar-static Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
navbars Docs: fix typo in Navbars example (#37535) 2022-11-25 22:30:10 +01:00
navbars-offcanvas Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
offcanvas-navbar Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
pricing Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
product Docs: quick fixes for HTML (#36395) 2022-05-20 10:21:48 -07:00
sidebars Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487) 2022-06-03 11:18:22 +01:00
sign-in Rename examples CSS/JS files for consistency 2022-10-06 13:03:55 -07:00
starter-template Fix padding on starter template 2022-08-31 20:22:42 -07:00
sticky-footer Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
sticky-footer-navbar Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
_index.md Docs: Redirect users to different templates of issues rather than an empty one (#36827) 2022-07-25 19:19:11 +02:00
.stylelintrc Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00