Skip to content

Commit 965286d

Browse files
committed
Add example/reference for color & background helper use
1 parent d57c3f8 commit 965286d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

site/content/docs/5.3/components/progress.md

+8
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ If you're adding labels to progress bars with a custom background color, make su
123123
</div>
124124
{{< /example >}}
125125

126+
Alternatively, you can use the new combined [color & background helper]({{< docsref "/helpers/color-background" >}}) classes.
127+
128+
{{< example >}}
129+
<div class="progress" role="progressbar" aria-label="Warning example" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
130+
<div class="progress-bar text-bg-warning" style="width: 75%">75%</div>
131+
</div>
132+
{{< /example >}}
133+
126134
## Multiple bars
127135

128136
You can include multiple progress components inside a container with `.progress-stacked` to create a single stacked progress bar. Note that in this case, the styling to set the visual width of the progress bar *must* be applied to the `.progress` elements, rather than the `.progress-bar`s.

0 commit comments

Comments
 (0)