<!-- Alert -->
<div class="alert" id="alert-1" data-js-alert data-time="2019-10-18 14:52:4" role="region" aria-labelledby="alert-1__title" aria-describedby="alert-1__description" tabindex="-1">
<div class="fw-container">
<div class="alert__inner" role="status">
<div class="alert__header">
<div class="alert__header-icon" aria-hidden="true">
<svg class="icon icon--warning">
<use href="/images/icons.svg?1.0.0#warning" />
</svg>
</div>
</div>
<div class="alert__body">
<div class="alert__description typography" id="alert-1__description">
<p>Aenean massa. Cum <strong>sociis natoque</strong> penatibus et magnis dis <a href="#">parturient montes</a>, nascetur ridiculus mus.</p>
</div>
</div>
<div class="alert__close">
<button class="button
alert__close-button" id="alert-1__close-button" data-js-alert-close-button="" aria-labelledby="alert-1__close-button alert-1__title">
<span class="button__inner"> <span class="button__label">Close</span>
<span class="button__icon" aria-hidden="true"><svg class="icon icon--close">
<use href="/images/icons.svg?1.0.0#close" />
</svg></span>
</span>
</button>
</div>
</div>
</div>
</div>
<!-- END: Alert -->
{#
{% include '@component-alert' with {
published: '2019-10-18 14:52:4',
title: 'Title',
description: '<p>Description.</p>'
} %}
#}
{% set id = uniqid('alert') %}
{% set heading_level = heading_level ?? 2 %}
{% set heading_tag = 'h' ~ (heading_level) %}
<!-- Alert -->
<div
class="alert"
id="{{ id }}"
data-js-alert
data-time="{{ published }}"
role="region"
aria-labelledby="{{ id ~ '__title' }}"
aria-describedby="{{ id ~ '__description' }}"
tabindex="-1"
>
<div class="fw-container">
<div class="alert__inner" role="status">
<div class="alert__header">
<div class="alert__header-icon" aria-hidden="true">
{{ icon('warning') }}
</div>
{# <{{ heading_tag }} class="alert__title" id="{{ id ~ '__title' }}" tabindex="-1">
{{- title -}}
</{{ heading_tag }}> #}
</div>
<div class="alert__body">
<div class="alert__description typography" id="{{ id ~ '__description' }}">
{{ description }}
</div>
</div>
<div class="alert__close">
{% include '@partial-button' with {
classes: {
base: 'button',
utility: 'alert__close-button'
},
id: id ~ '__close-button',
attributes: {
'data-js-alert-close-button': '',
'aria-labelledby': id ~ '__close-button ' ~ id ~ '__title'
},
title: 'Close',
icon: 'close'
} only %}
</div>
</div>
</div>
</div>
<!-- END: Alert -->
No notes defined.