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.
.border if needed.Subtle — bg + border utilities
Combine .alert with .bg-*-subtle, .border-*-subtle, and .text-*-emphasis for softer panels (no duplicate alert-* class).
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.
Payment method
We accept cards and ACH. Enterprise customers can request invoicing.
Questions? Read billing FAQ or contact finance.
Icons + flex layout
Use d-flex with gap-2 / gap-3 so icons align with multi-line copy.
2.4.1 is live in production.
Lists & badges
Stack ul / ol or badges inside the alert body; spacing uses Bootstrap utilities.
- DNS cutover scheduled
- Smoke tests passing
- Rollback playbook linked in runbook
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.
Health check passed all regions.
Elevated latency in eu-west.
Failover in progress; ETA 12 min.
Stacked full-width (form / page banner)
Use .w-100 inside a column or place alerts above main for global notices.