2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00
Files
bootstrap/site/content/docs/5.2/examples
Patrick H. Lauke 8dbd24699f 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)
2022-07-24 14:23:38 +01:00
..
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-20 10:21:48 -07:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-20 10:21:48 -07:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-20 10:21:48 -07:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00
2022-05-13 19:44:01 +03:00