Skip to main content

Alerts

Bootstrap 5.3 .alert components: contextual colors, subtle surfaces, dismissible regions, icons, headings, and links. Toggle the navbar theme — alerts use Bootstrap CSS variables and stay legible in light and dark mode.

Bootstrap-native markup

Use role="alert" for static messages, or role="status" / aria-live="polite" for low-urgency updates. Dismissible alerts pair .alert-dismissible with .btn-close and data-bs-dismiss="alert".

Contextual — solid

Classes .alert-primary through .alert-dark map to Bootstrap theme tokens and update with data-bs-theme.

Subtle — bg + border utilities

Combine .alert with .bg-*-subtle, .border-*-subtle, and .text-*-emphasis for softer panels (no duplicate alert-* class).

Primary subtle — migrations, tips, or low-noise highlights.
Success subtle — confirmations that should not dominate the layout.
Warning subtle — maintenance windows or deprecations.
Info subtle — release notes or documentation links.
Secondary subtle — metadata or secondary workflow hints.

Dismissible + fade

Add .fade .show for opacity transition when dismissed. Each alert needs a unique id if you re-show via JavaScript.

Headings, divider, extra content

.alert-heading inherits alert color; use .alert-link for weighted links inside the same region.

Icons + flex layout

Use d-flex with gap-2 / gap-3 so icons align with multi-line copy.

Deployed. Version 2.4.1 is live in production.

Lists & badges

Stack ul / ol or badges inside the alert body; spacing uses Bootstrap utilities.

Pricing updates for Q2 Draft

Inline actions

Pair alerts with .btn groups; use flex-wrap on narrow viewports.

Border accent + rounded scale

.border-start with .border-4 creates a vertical emphasis bar; combine with rounded-3 / shadow-sm for card-like callouts.

OK

Health check passed all regions.

Stacked full-width (form / page banner)

Use .w-100 inside a column or place alerts above main for global notices.

Maintenance tonight 02:00–03:00 UTC. Read-only mode may apply. Status page