Accessible
Uses proper ARIA roles (role="alert") and aria-live attributes for full screen reader compatibility.
Display important messages, notifications, warnings, and status updates to users in a visually distinct and accessible manner.
Accessible
Uses proper ARIA roles (role="alert") and aria-live attributes for full screen reader compatibility.
Responsive
Adapts gracefully to all screen sizes with flexible layout and inline styles.
Brand Compliant
Uses official PUSD colors: Navy (#003366), Light Blue (#54c8eb), and Gold (#f0ad4e).
Copy-Paste Ready
Inline CSS makes each snippet immediately usable in the Edlio CMS WYSIWYG editor with no external stylesheets required.
Six alert variants are available:
| Variant | Color | Use Case |
|---|---|---|
info | PUSD Light Blue #54c8eb | General information, tips, and helpful notes |
success | Green #4caf50 | Successful operations, confirmations, positive feedback |
warning | PUSD Gold #f0ad4e | Important notices, cautions, non-critical issues |
error | Red #d32f2f | Errors, failures, critical problems requiring action |
navy | PUSD Navy #003366 | Official announcements, district-wide notices |
compact | PUSD Light Blue #54c8eb | Brief messages without icons |
| Parameter | Type | Description |
|---|---|---|
type | String | Alert variant: info, success, warning, error, navy, compact |
title | String | Optional heading for the alert |
message | String / HTML | Main alert content (supports HTML) |
buttonText | String | Optional button label — when provided, a button is rendered |
buttonUrl | String | Button link URL (defaults to #) |
buttonStyle | String | Button variant: primary, secondary, outline, gold |
Select any snippet below and paste it directly into the Edlio CMS WYSIWYG editor.
<!-- INFO ALERT (PUSD LIGHT BLUE) --><div role="alert" aria-live="polite" style="background-color: #e8f7fc; border-left: 4px solid #54c8eb; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #0277bd;">ℹ</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #003366; margin-bottom: 4px; font-size: 16px;">Information</strong> <p style="margin: 0; color: #003366; line-height: 1.5; font-size: 14px;">This is an informational alert. Use it to communicate general information to users.</p> </div></div><!-- SUCCESS ALERT (GREEN) --><div role="alert" aria-live="polite" style="background-color: #e8f5e9; border-left: 4px solid #4caf50; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #2e7d32;">✓</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #2e7d32; margin-bottom: 4px; font-size: 16px;">Success</strong> <p style="margin: 0; color: #2e7d32; line-height: 1.5; font-size: 14px;">This is a success alert. Use it to confirm successful actions or positive outcomes.</p> </div></div><!-- WARNING ALERT (PUSD GOLD) --><div role="alert" aria-live="polite" style="background-color: #fef9f0; border-left: 4px solid #f0ad4e; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #8a6d3b;">⚠</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #8a6d3b; margin-bottom: 4px; font-size: 16px;">Warning</strong> <p style="margin: 0; color: #8a6d3b; line-height: 1.5; font-size: 14px;">This is a warning alert. Use it to caution users about potential issues or important notices.</p> </div></div><!-- ERROR ALERT (RED) --><div role="alert" aria-live="assertive" style="background-color: #fdecea; border-left: 4px solid #d32f2f; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #c62828;">✕</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #c62828; margin-bottom: 4px; font-size: 16px;">Error</strong> <p style="margin: 0; color: #c62828; line-height: 1.5; font-size: 14px;">This is an error alert. Use it to communicate errors or critical issues requiring attention.</p> </div></div><!-- NAVY ALERT (PUSD NAVY) --><div role="alert" aria-live="polite" style="background-color: #e6eaf0; border-left: 4px solid #003366; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #003366;">●</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #003366; margin-bottom: 4px; font-size: 16px;">Notice</strong> <p style="margin: 0; color: #003366; line-height: 1.5; font-size: 14px;">This is a PUSD Navy alert. Use it for official district announcements or important notices.</p> </div></div><!-- COMPACT ALERT (Minimal Style) --><div role="alert" aria-live="polite" style="background-color: #e8f7fc; border-left: 4px solid #54c8eb; padding: 12px 16px; margin: auto; border-radius: 4px;"> <p style="margin: 0; color: #003366; line-height: 1.5; font-size: 14px;"><strong>Quick Tip:</strong> This is a compact alert without an icon, suitable for brief messages.</p></div><!-- INFO ALERT WITH PRIMARY BUTTON --><div role="alert" aria-live="polite" style="background-color: #e8f7fc; border-left: 4px solid #54c8eb; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #0277bd;">ℹ</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #003366; margin-bottom: 4px; font-size: 16px;">Action Required</strong> <p style="margin: 0; color: #003366; line-height: 1.5; font-size: 14px;">Please review and update your contact information to ensure you receive important district notifications.</p> <a href="#" style="display: inline-block; background-color: #003366; color: #ffffff; border: 2px solid #003366; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: 600; margin-top: 12px; transition: all 0.3s ease; cursor: pointer;">Update Information</a> </div></div><!-- WARNING ALERT WITH OUTLINE BUTTON --><div role="alert" aria-live="polite" style="background-color: #fef9f0; border-left: 4px solid #f0ad4e; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #8a6d3b;">⚠</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #8a6d3b; margin-bottom: 4px; font-size: 16px;">Deadline Approaching</strong> <p style="margin: 0; color: #8a6d3b; line-height: 1.5; font-size: 14px;">The enrollment deadline is coming up soon. Don't miss your chance to register for the upcoming school year.</p> <a href="#" style="display: inline-block; background-color: transparent; color: #003366; border: 2px solid #003366; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: 600; margin-top: 12px; transition: all 0.3s ease; cursor: pointer;">Enroll Now</a> </div></div><!-- NAVY ALERT WITH GOLD BUTTON --><div role="alert" aria-live="polite" style="background-color: #e6eaf0; border-left: 4px solid #003366; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #003366;">●</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #003366; margin-bottom: 4px; font-size: 16px;">Important Announcement</strong> <p style="margin: 0; color: #003366; line-height: 1.5; font-size: 14px;">New district policies have been published. All staff and families should review the updated guidelines.</p> <a href="#" style="display: inline-block; background-color: #f0ad4e; color: #003366; border: 2px solid #f0ad4e; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: 600; margin-top: 12px; transition: all 0.3s ease; cursor: pointer;">Read More</a> </div></div><!-- SUCCESS ALERT WITH SECONDARY BUTTON --><div role="alert" aria-live="polite" style="background-color: #e8f5e9; border-left: 4px solid #4caf50; padding: 16px 20px; margin: auto; border-radius: 4px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;"> <span aria-hidden="true" style="flex-shrink: 0; font-size: 24px; line-height: 1; margin-top: 2px; font-weight: bold; color: #2e7d32;">✓</span> <div style="flex: 1; min-width: 0;"> <strong style="display: block; color: #2e7d32; margin-bottom: 4px; font-size: 16px;">Registration Complete</strong> <p style="margin: 0; color: #2e7d32; line-height: 1.5; font-size: 14px;">Your enrollment has been successfully submitted. Check your email for confirmation details.</p> <a href="#" style="display: inline-block; background-color: #54c8eb; color: #003366; border: 2px solid #54c8eb; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: 600; margin-top: 12px; transition: all 0.3s ease; cursor: pointer;">View Confirmation</a> </div></div>Change the title — Update the text inside the <strong> tag.
Change the message — Update the text inside the <p> tag.
Add links — Use standard <a href=""> tags within the message paragraph.
Keep colors consistent — Maintain the border-left color value to match the alert variant.
Remove the icon — Delete the entire <span> element containing the Unicode character for a compact style.
Add a button — Paste a button <a> tag after the <p> element. Use margin-top: 12px for spacing. Available button styles:
background-color: #003366background-color: #54c8ebbackground-color: transparentbackground-color: #f0ad4e