bootstrap/site/content/docs/5.2/components
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
..
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 Add dark mode support (#35857) 2022-11-28 22:30:26 -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