bootstrap/scss
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
..
forms Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
helpers Add `$enable-important-utilities` condition in colored links 2022-10-06 13:04:43 -07:00
mixins Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
utilities Utility API, RFS option: Only generate responsive classes when needed (#32397) 2020-12-09 23:49:21 +02:00
vendor Update rfs to v9.0.4. 2021-06-22 20:11:39 +03:00
_accordion.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_alert.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_badge.scss Fix tooltip/badge border radius when rounded disabled 2022-06-29 13:41:33 -07:00
_breadcrumb.scss Stylelint: Disable `custom-property-empty-line-before` 2022-05-22 19:58:14 -07:00
_button-group.scss fix 2022-10-23 12:51:51 -04:00
_buttons.scss Explicitly target `.btn-check` and undo `:hover` (#37165) 2022-09-20 15:15:46 +02:00
_card.scss Add support for customising a card title color (#36979) 2022-10-30 20:06:02 -04:00
_carousel.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_close.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_containers.scss Separate container classes from `$enable-grid-classes` option (#35005) 2021-10-05 19:46:33 +03:00
_dropdown.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_forms.scss Drop custom file upload plugin in favor of CSS 2020-10-28 18:29:28 +01:00
_functions.scss Fix deprecation warning with sass 1.56.0 (#37425) 2022-11-21 20:11:18 +02:00
_grid.scss Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981) 2022-03-13 10:13:09 -07:00
_helpers.scss Add new text-bg-color utilities 2022-04-30 12:55:27 -07:00
_images.scss Replace `/` division with multiplication and custom `divide()` function (#34245) 2021-06-14 09:35:30 -07:00
_list-group.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_maps.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_mixins.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_modal.scss Add workarounds for postcss values parser error 2022-09-04 09:45:40 -07:00
_nav.scss Add workarounds for postcss values parser error 2022-09-04 09:45:40 -07:00
_navbar.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_offcanvas.scss Remove duplicate `--#{$prefix}offcanvas-zindex` (#37257) 2022-10-04 13:38:07 +02:00
_pagination.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_placeholders.scss Update devDependencies (#36120) 2022-04-08 09:17:00 +03:00
_popover.scss Add workarounds for postcss values parser error 2022-09-04 09:45:40 -07:00
_progress.scss Rework progress bar markup and styles (#36831) 2022-11-28 23:07:48 -08:00
_reboot.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_root.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_spinners.scss v5.2.0 design refresh, plus responsive offcanvas classes (#35736) 2022-04-17 22:17:50 -07:00
_tables.scss Use `--bs-border-width` for some components (#37344) 2022-10-23 00:13:13 -04:00
_toasts.scss Set toast z-index variable in the correct spot 2022-09-20 04:36:45 -07:00
_tooltip.scss Fix tooltip/badge border radius when rounded disabled 2022-06-29 13:41:33 -07:00
_transitions.scss Add horizontal collapse support 2021-07-05 17:22:29 -10:00
_type.scss Add `$display-font-family` and `$display-font-style` (#36711) 2022-07-11 23:16:33 +02:00
_utilities.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_variables-dark.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
_variables.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
bootstrap-grid.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
bootstrap-reboot.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
bootstrap-utilities.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
bootstrap.scss Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00