Skip to content

Commit

Permalink
Add example/reference for color & background helper use
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhlauke committed Jan 21, 2023
1 parent d57c3f8 commit 965286d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions site/content/docs/5.3/components/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ If you're adding labels to progress bars with a custom background color, make su
</div>
{{< /example >}}

Alternatively, you can use the new combined [color & background helper]({{< docsref "/helpers/color-background" >}}) classes.

{{< example >}}
<div class="progress" role="progressbar" aria-label="Warning example" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar text-bg-warning" style="width: 75%">75%</div>
</div>
{{< /example >}}

## Multiple bars

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.
Expand Down

0 comments on commit 965286d

Please sign in to comment.