Report an Issue Join the Slack Discussion
Notify users of an important change or new piece of information.
role="alert"
to notify assistive technology of time-sensitive information.Further Reading
<figure class="alert alert--primary" role="alert">
<figcaption>A simple primary alert-check it out!</figcaption>
</figure>
<figure class="alert alert--primary inline-block" role="alert">
<figcaption>A simple primary alert-check it out!</figcaption>
</figure>
<figure class="alert alert--secondary" role="alert">
<figcaption>A simple secondary alert-check it out!</figcaption>
</figure>
<figure class="alert alert--secondary inline-block" role="alert">
<figcaption>A simple secondary alert-check it out!</figcaption>
</figure>
<figure class="alert alert--success" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-success.svg" alt="success">
<figcaption>A simple success alert-check it out!</figcaption>
</figure>
<figure class="alert alert--success inline-block" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-success.svg" alt="success">
<figcaption>A simple success alert-check it out!</figcaption>
</figure>
<figure class="alert alert--error" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-error.svg" alt="error">
<figcaption>A simple error alert-check it out!</figcaption>
</figure>
<figure class="alert alert--error inline-block" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-error.svg" alt="error">
<figcaption>A simple error alert-check it out!</figcaption>
</figure>
<figure class="alert alert--warning" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-warning.svg" alt="warning">
<figcaption>A simple warning alert-check it out!</figcaption>
</figure>
<figure class="alert alert--warning inline-block" role="alert">
<img src="https://webcomponents.ucla.edu/img/icons/denotive/form-warning.svg" alt="warning">
<figcaption>A simple warning alert-check it out!</figcaption>
</figure>