bootstrap/site/content/docs/5.2/utilities
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
..
api.md Update import order for utilities API docs (#36444) 2022-05-26 14:11:27 -07:00
background.md Docs: Add black text/background examples (#37538) 2022-11-28 23:07:27 -08:00
borders.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
colors.md Docs: Add black text/background examples (#37538) 2022-11-28 23:07:27 -08:00
display.md Correct typo in documentation for hiding elements (#37250) 2022-10-04 09:24:52 +03:00
flex.md Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
float.md Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
interactions.md Markdownlint fixes (#37255) 2022-10-25 21:37:36 +03:00
object-fit.md Utilities for overflow and object fit (#36848) 2022-10-06 13:14:11 -07:00
opacity.md Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
overflow.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
position.md Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
shadows.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
sizing.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
spacing.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
text.md Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
vertical-align.md Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
visibility.md Prepare v5.2.0-beta1 2022-05-13 19:44:01 +03:00
z-index.md Docs: Make added-in badge page-level for z-index utilities (#37491) 2022-11-14 07:37:49 +01:00