Skip to content

Alert

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:

VariantColorUse Case
infoPUSD Light Blue #54c8ebGeneral information, tips, and helpful notes
successGreen #4caf50Successful operations, confirmations, positive feedback
warningPUSD Gold #f0ad4eImportant notices, cautions, non-critical issues
errorRed #d32f2fErrors, failures, critical problems requiring action
navyPUSD Navy #003366Official announcements, district-wide notices
compactPUSD Light Blue #54c8ebBrief messages without icons
ParameterTypeDescription
typeStringAlert variant: info, success, warning, error, navy, compact
titleStringOptional heading for the alert
messageString / HTMLMain alert content (supports HTML)
buttonTextStringOptional button label — when provided, a button is rendered
buttonUrlStringButton link URL (defaults to #)
buttonStyleStringButton 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>
<!-- 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>
  1. Change the title — Update the text inside the <strong> tag.

  2. Change the message — Update the text inside the <p> tag.

  3. Add links — Use standard <a href=""> tags within the message paragraph.

  4. Keep colors consistent — Maintain the border-left color value to match the alert variant.

  5. Remove the icon — Delete the entire <span> element containing the Unicode character for a compact style.

  6. Add a button — Paste a button <a> tag after the <p> element. Use margin-top: 12px for spacing. Available button styles:

    • Primary (Navy): background-color: #003366
    • Secondary (Light Blue): background-color: #54c8eb
    • Outline (Transparent): background-color: transparent
    • Gold: background-color: #f0ad4e