From: Mark Otto Date: Sun, 25 Apr 2021 03:59:13 +0000 (-0700) Subject: Add Bootstrap Icons to alerts docs (#33690) X-Git-Tag: v5.0.0~31 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0fa8cb0bd3b4ccf09dd59bfc0d8fb9abeb31d9dc;p=thirdparty%2Fbootstrap.git Add Bootstrap Icons to alerts docs (#33690) * Add Bootstrap Icons to alerts docs * Update site/content/docs/5.0/components/alerts.md Co-authored-by: Gaël Poupard * Update alerts.md Co-authored-by: Gaël Poupard Co-authored-by: XhmikosR --- diff --git a/site/content/docs/5.0/components/alerts.md b/site/content/docs/5.0/components/alerts.md index 3ef2e62cf8..42853f2e0c 100644 --- a/site/content/docs/5.0/components/alerts.md +++ b/site/content/docs/5.0/components/alerts.md @@ -49,6 +49,62 @@ Alerts can also contain additional HTML elements like headings, paragraphs and d {{< /example >}} +### Icons + +Similarly, you can use [flexbox utilities]({{< docsref "/utilities/flex" >}}) and [Bootstrap Icons]({{ .Site.Params.icons }}) to create alerts with icons. Depending on your icons and content, you may want to add more utilities or custom styles. + +{{< example >}} + +{{< /example >}} + +Need more than one icon for your alerts? Consider using more Bootstrap Icons and making a local SVG sprite like so to easily reference the same icons repeatedly. + +{{< example >}} + + + + + + + + + + + + + + + + +{{< /example >}} + ### Dismissing Using the alert JavaScript plugin, it's possible to dismiss any alert inline. Here's how: