Alert

Inline notification tied to a specific context

Usage

Alert

Variants:

ℹ️ Even though the Alert--<color> modifier is not used by default, it can be used to override the color scheme when needed. See Component Color Overrides for more information.

The default radius can be customized with an optional device token. See Component Radius Overrides.


                                                
                                                <div class="Alert Alert--success color-scheme-on-emotion-success-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#success" />
                                                  </svg>
                                                  <div>We sent you an activation link to email <strong>spirit@lmc.eu</strong>.</div>
                                                </div>
                                                
                                                <div class="Alert Alert--informative color-scheme-on-emotion-informative-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#info" />
                                                  </svg>
                                                  <div>
                                                    Data update failed due to missing internet connection Data update failed due to missing internet connection Data
                                                    update failed due to missing internet connection Data update failed due to missing internet connection Data update
                                                    failed due to missing internet connection Data update failed due to missing internet connection
                                                  </div>
                                                </div>
                                                
                                                <div class="Alert Alert--warning color-scheme-on-emotion-warning-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#warning" />
                                                  </svg>
                                                  <div><strong>Warning!</strong> Data update failed due to missing internet connection</div>
                                                </div>
                                                
                                                <div class="Alert Alert--danger color-scheme-on-emotion-danger-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#close" />
                                                  </svg>
                                                  <div>Data update failed due to missing internet connection</div>
                                                </div>
                                                
                                                <div class="Alert Alert--success Alert--center color-scheme-on-emotion-success-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#success" />
                                                  </svg>
                                                  <div>We sent you an activation link to email <strong>spirit@lmc.eu</strong>.</div>
                                                </div>
                                                
                                                <div class="Alert Alert--informative Alert--center color-scheme-on-emotion-informative-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#info" />
                                                  </svg>
                                                  <div>
                                                    Data update failed due to missing internet connection Data update failed due to missing internet connection Data
                                                    update failed due to missing internet connection Data update failed due to missing internet connection Data update
                                                    failed due to missing internet connection Data update failed due to missing internet connection
                                                  </div>
                                                </div>
                                                
                                                <div class="Alert Alert--warning Alert--center color-scheme-on-emotion-warning-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#warning" />
                                                  </svg>
                                                  <div><strong>Warning!</strong> Data update failed due to missing internet connection</div>
                                                </div>
                                                
                                                <div class="Alert Alert--danger Alert--center color-scheme-on-emotion-danger-subtle">
                                                  <svg class="Icon" width="20" height="20" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#close" />
                                                  </svg>
                                                  <div>Data update failed due to missing internet connection</div>
                                                </div>
                                                

To ensure links inside Alert match the alert's content color, add the link-inherit class to each link or button element. Use link-underlined as well for accessibility so links are distinguishable from surrounding text:


                                                
                                                <div class="Alert Alert--success color-scheme-on-emotion-success-subtle">
                                                  <svg class="Icon" width="24" height="24" aria-hidden="true">
                                                    <use href="/icons/svg/sprite.svg#success" />
                                                  </svg>
                                                  <div>See <a href="/faq" class="link-inherit link-underlined">FAQ</a> for more info.</div>
                                                </div>